mirror of https://github.com/apache/jclouds.git
Merge pull request #541 from dhogan/security-group-delete
fix Accept header in delete
This commit is contained in:
commit
94edcbf00d
|
@ -104,7 +104,7 @@ public interface SecurityGroupAsyncClient {
|
|||
@DELETE
|
||||
@Path("/os-security-groups/{id}")
|
||||
@ExceptionParser(ReturnNullOnNotFoundOr404.class)
|
||||
@Consumes
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
ListenableFuture<Boolean> deleteSecurityGroup(@PathParam("id") String id);
|
||||
|
||||
/**
|
||||
|
|
|
@ -142,7 +142,7 @@ public class SecurityGroupClientExpectTest extends BaseNovaClientExpectTest {
|
|||
HttpRequest deleteSecurityGroup = HttpRequest.builder().method("DELETE").endpoint(
|
||||
URI.create("https://compute.north.host/v1.1/3456/os-security-groups/160"))
|
||||
.headers(
|
||||
ImmutableMultimap.<String, String> builder().put("Accept", "*/*")
|
||||
ImmutableMultimap.<String, String> builder().put("Accept", "application/json")
|
||||
.put("X-Auth-Token", authToken).build()).build();
|
||||
|
||||
HttpResponse deleteSecurityGroupResponse = HttpResponse.builder().statusCode(202).build();
|
||||
|
|
Loading…
Reference in New Issue