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
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.
Tested as specified, all tests passed. rev2626 windows/oracle
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1349