Fix bug with nova client and Diablo where client sends Accept header that Diablo rejects as unparseable

This commit is contained in:
Matt Stephenson 2011-11-08 12:15:14 -06:00
parent a25c2616cc
commit 393c99561d
2 changed files with 2 additions and 1 deletions

View File

@ -88,6 +88,7 @@ public interface NovaAsyncClient {
* @see NovaClient#deleteServer
*/
@DELETE
@Consumes
@ExceptionParser(ReturnFalseOnNotFoundOr404.class)
@Path("/servers/{id}")
ListenableFuture<Boolean> deleteServer(@PathParam("id") int id);

View File

@ -416,7 +416,7 @@ public class NovaAsyncClientTest extends RestClientTest<NovaAsyncClient> {
HttpRequest request = processor.createRequest(method, 2);
assertRequestLineEquals(request, "DELETE http://endpoint/vapiversion/servers/2 HTTP/1.1");
assertNonPayloadHeadersEqual(request, "");
assertNonPayloadHeadersEqual(request, "Accept: */*\n");
assertPayloadEquals(request, null, null, false);
assertResponseParserClassEquals(method, request, ReturnTrueIf2xx.class);