jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] JClouds Profitbricks provider - LoadBalancer API (#143)
Date Mon, 09 Mar 2015 17:15:54 GMT
> +      LoadBalancerApi api = pbApi.loadBalancerApi();
> +
> +      String id = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee";
> +
> +      String content = "<ws:getLoadBalancer><loadBalancerId>" + id + "</loadBalancerId></ws:getLoadBalancer>";
> +      try {
> +         LoadBalancer loadBalancer = api.getLoadBalancer(id);
> +
> +         assertRequestHasCommonProperties(server.takeRequest(), content);
> +         assertNotNull(loadBalancer);
> +         assertEquals(loadBalancer.id(), id);
> +      } finally {
> +         pbApi.close();
> +         server.shutdown();
> +      }
> +   }

Both get methods define a fallback. Add the corresponding tests.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/143/files#r26055169
Mime
View raw message