nacx commented on this pull request.


> +   public void checkIpAvailable() throws InterruptedException {
+      server.enqueue(jsonResponse("/ipavailable.json"));
+
+      final VirtualNetworkApi vnApi = api.getVirtualNetworkApi(resourcegroup);
+      IpAddressAvailabilityResult checkResult = 
vnApi.checkIPAddressAvailability(virtualNetwork, ipAvailable);
+
+      String path = 
String.format("/subscriptions/%s/resourcegroups/%s/providers/Microsoft"
+                  + 
".Network/virtualNetworks/%s/CheckIPAddressAvailability?ipAddress=%s&%s", 
subscriptionid,
+            resourcegroup,
+            virtualNetwork, ipAvailable, apiVersion);
+      assertSent(server, "GET", path);
+      assertTrue(checkResult.available());
+      assertTrue(checkResult.availableIPAddresses().isEmpty());
+   }
+
+   public void checkIpNotAvailable() throws InterruptedException {

One of the two methods is redundant. Keep the one you prefer

-- 
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/pull/1231#discussion_r202195113

Reply via email to