Bug 534564 (RHQ-1349) - resource.availability doesn't support "empty" and "not empty" syntax flavors
Summary: resource.availability doesn't support "empty" and "not empty" syntax flavors
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-1349
Product: RHQ Project
Classification: Other
Component: Core Server
Version: 1.2
Hardware: All
OS: All
low
medium
Target Milestone: ---
: ---
Assignee: Joseph Marques
QA Contact: Jeff Weiss
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks: RHQ-399
TreeView+ depends on / blocked
 
Reported: 2009-01-13 11:20 UTC by Joseph Marques
Modified: 2014-11-09 22:48 UTC (History)
1 user (show)

Fixed In Version: 1.2
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Joseph Marques 2009-01-13 11:20:00 UTC
we should support:

"empty resource.availability"
"not empty resource.availability"

but current this will throw an exception in the logs and an error message will be displayed in the UI

Comment 1 Joseph Marques 2009-01-13 11:24:03 UTC
rev2605 - support "empty" and "not empty" syntax flavors for resource.availability

test 1:
* create a new group definition
* edit the expression set and enter "not empty resource.availability"
* click save // this should succeed, previously it failed
* then, calculate the groups

expected results:
* one group for all resources that are either UP or DOWN resources (assuming any exist in inventory)

test 2:
* create a new group definition
* edit the expression set and enter "empty resource.availability"
* click save // this should succeed, previously it failed
* then, calculate the groups

expected results:
* one group for all resources that are *neither* UP or DOWN resources (assuming any exist in inventory [this can happen when a resource as been imported into the inventory, but an availability report hasn't been sent up to the server])

test 3:
* take the sum of the memberships in the 2 groups produced in test 1 and test 2.  ensure that the sum is equal to the total number of resources in your inventory.  note: the size of the inventory should NOT change during tests 1 and 2, otherwise you will not see the correct results in this test.

Comment 2 Jeff Weiss 2009-01-19 15:50:49 UTC
Tested as specified, all tests passed.

rev2626 windows/oracle

Comment 3 Red Hat Bugzilla 2009-11-10 20:31:06 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1349



Note You need to log in before you can comment on or make changes to this bug.