jclouds/jclouds — pull request #463 by aledsage (2012-03-16 22:41:13+00:00)
Title: Issue #830 vcloud-director: QueryClient live tests and fixes

Live tests for QueryClient, and required fixes.

---
Adds coverage for the following:
* GET /vAppTemplates/query
* GET /vApps/query
* GET /vms/query

---
Code comments:
* The tests do not yet create a vApp (and thus not a VM), so those queries do not have strong assertions.
* The attempt to assert queryResultRecord.getType was futile: there is no type attribute in the xml so the 'type' field is null.
* For the existing QueryAsyncClient.catalogsQuery, it is overloaded to take page+pageSize+filter.
I haven't (yet) overloaded vAppTemplatesQuery in the same way.
Also note there are no tests for the existing catalogsQuery that uses filters.
* `GET /query` is still to be tested.