> +               .target("1")
> +               .build();
> +         scalingPolicies.add(scalingPolicy);
> +
> +         FluentIterable<ScalingPolicyResponse> scalingPolicyResponse = 
> api.create(scalingPolicies);
> +
> +         /*
> +          * Check request
> +          */
> +         assertAuthentication(server);
> +         assertRequest(server.takeRequest(), "POST", 
> "/v1.0/888888/groups/groupId1/policies", 
> "/autoscale_policy_create_request.json");
> +
> +         /*
> +          * Check response
> +          */
> +         assertTrue(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#r8426002

Reply via email to