mirror of https://github.com/apache/jclouds.git
fix Accept header in delete
This commit is contained in:
parent
95b33d335a
commit
12e8a366fc
|
@ -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