> +   @MapBinder(BindToJsonPayload.class)
> +   
> @Path("/resourcegroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccountName}")
> +   StorageServiceUpdateParams update(
> +           @PathParam("storageAccountName") String storageAccountName,
> +           @PayloadParam("properties") 
> StorageServiceUpdateParams.StorageServiceUpdateProperties properties,
> +           @PayloadParam("tags") Map<String, String> tags);
> +
> +   /**
> +    * https://msdn.microsoft.com/en-us/library/mt163652.aspx
> +    * DELETE
> +    */
> +   @Named("storageaccount:delete")
> +   @DELETE
> +   @ResponseParser(StatusCodeParser.class)
> +   
> @Path("/resourcegroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccountName}")
> +   String delete(@PathParam("storageAccountName") String storageAccountName);

@nacx After adding `@Fallback(Fallbacks.FalseOnNotFoundOr204.class)` for 
delete, in `StorageAccountApiMockTest`, setting response code to 204 does not 
seem to work. Same test for `FalseOnNotFoundOr204` works fine. Similarly 
`FalseOnNotFoundOr422` also never returns false. What am I missing here?

```java
server.enqueue(new MockResponse().setResponseCode(204));

      final StorageAccountApi storageAPI = 
api.getStorageAccountApi(resourceGroup);

      boolean status = storageAPI.delete("TESTSTORAGE");
      assertFalse(status);
```

---
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/259/files/545a9a572a375fa04f8b638e5693bb5bf29471f3#r59953738

Reply via email to