> +      try {
> +         AutoscaleApi autoscaleApi = api(server.getUrl("/").toString(), 
> "rackspace-autoscale", overrides);
> +         PolicyApi api = autoscaleApi.getPolicyApiForZoneAndGroup("DFW", 
> "groupId1");         
> +
> +         FluentIterable<ScalingPolicyResponse> scalingPolicyResponse = 
> api.list();
> +
> +         /*
> +          * Check request
> +          */
> +         assertAuthentication(server);
> +         assertRequest(server.takeRequest(), "GET", 
> "/v1.0/888888/groups/groupId1/policies");
> +
> +         /*
> +          * Check response
> +          */
> +         assertEquals(scalingPolicyResponse.size(), 0);

`scalingPolicyResponse.isEmpty(), "Expected an empty response but was: " + 
scalingPolicyResponse`, or something like that?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/67/files#r8426006

Reply via email to