> +      assertEquals(server.getRequestCount(), 1);
> +      assertSent(server, "GET", requestUrl + "/jcloudstest" + version);
> +   }
> +
> +   public void testGetResourceGroupReturns404() throws InterruptedException {
> +      server.enqueue(response404());
> +
> +      ResourceGroup resourceGroup = 
> api.getResourceGroupApi(subscriptionid).get("jcloudstest");
> +
> +      assertNull(resourceGroup);
> +
> +      assertEquals(server.getRequestCount(), 1);
> +      assertSent(server, "GET", requestUrl + "/jcloudstest" + version);
> +   }
> +
> +   // Commenting this out due to this error during CI run: Command not 
> considered safe to retry because request method is PATCH

I suspect this could be failing (when it shouldn't) because the default java 
driver does not support PATCH, and upon failure, jclouds tries to retry (in 
this case [the retry is not attempted because the method is not 
idempotent](https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/http/internal/BaseHttpCommandExecutorService.java#L150)).
 If you change the default driver to OkHttp as suggested in an earlier comment, 
this test should succeed.

---
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/250/files/f7cc1b437f11378e105bba552e3cfee9d7491872#r57579927

Reply via email to