> -    }
> +         }
> +      }
> +   }
> +
> +   @Test
> +   public void testCreateInWrongAvailabilityZone() {
> +      String serverId = null;
> +      for (String zoneId : zones) {
> +         ServerApi serverApi = api.getServerApiForZone(zoneId);
> +         try {
> +            serverId = createServer(zoneId, "err", 
> Server.Status.ERROR).getId();
> +            Server server = serverApi.get(serverId);
> +            assertEquals(server.getStatus(), Server.Status.ERROR);
> +         } finally {
> +            serverApi.delete(serverId);

I think all of this code will benefit from a separate cleanup PR.
Also: the live tests have been very fragile for me, so they should be ... 
refactored.
I don't want to modify this because it already got merged, and will probably 
have to be fixed in master first and then backported (which is why separate PR).

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/313/files#r10840920

Reply via email to