trevorflanagan commented on this pull request.
> + }
+
+ public void testListServers() throws Exception {
+ server.enqueue(jsonResponse("/servers.json"));
+ List<Server> servers = serverApi().listServers().concat().toList();
+ Uris.UriBuilder uriBuilder =
Uris.uriBuilder("/caas/2.4/6ac1e746-b1ea-4da5-a24e-caf1a978789d/server/server");
+ Set<String> zones =
ctx.utils().injector().getInstance(ZoneIdsSupplier.class).get();
+ for (String zone : zones) {
+ uriBuilder.addQuery("datacenterId", zone);
+ }
+ assertSent(GET, uriBuilder.toString());
+ assertEquals(servers.size(), 1);
+ for (Server s : servers) {
+ assertNotNull(s);
+ }
+ }
Done
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/400#discussion_r152043272