From 12e8a366fcaf0cbb83318f001acadc5968cff3a1 Mon Sep 17 00:00:00 2001 From: Dirk Hogan Date: Wed, 4 Apr 2012 16:44:06 -0700 Subject: [PATCH] fix Accept header in delete --- .../nova/v1_1/extensions/SecurityGroupAsyncClient.java | 2 +- .../nova/v1_1/extensions/SecurityGroupClientExpectTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v1_1/extensions/SecurityGroupAsyncClient.java b/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v1_1/extensions/SecurityGroupAsyncClient.java index 9b6149634d..718ad18ce9 100644 --- a/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v1_1/extensions/SecurityGroupAsyncClient.java +++ b/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v1_1/extensions/SecurityGroupAsyncClient.java @@ -104,7 +104,7 @@ public interface SecurityGroupAsyncClient { @DELETE @Path("/os-security-groups/{id}") @ExceptionParser(ReturnNullOnNotFoundOr404.class) - @Consumes + @Consumes(MediaType.APPLICATION_JSON) ListenableFuture deleteSecurityGroup(@PathParam("id") String id); /** diff --git a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v1_1/extensions/SecurityGroupClientExpectTest.java b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v1_1/extensions/SecurityGroupClientExpectTest.java index 1596e98a36..a8baa07416 100644 --- a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v1_1/extensions/SecurityGroupClientExpectTest.java +++ b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v1_1/extensions/SecurityGroupClientExpectTest.java @@ -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. builder().put("Accept", "*/*") + ImmutableMultimap. builder().put("Accept", "application/json") .put("X-Auth-Token", authToken).build()).build(); HttpResponse deleteSecurityGroupResponse = HttpResponse.builder().statusCode(202).build();