From 37f66d6eed77fd8c0b233389b91bc6f3edeb7102 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Fri, 4 Mar 2011 15:47:31 -0500 Subject: [PATCH] Issue 493:bad http syntax deleting cloudsigma resources --- .../cloudsigma/CloudSigmaAsyncClient.java | 8 ++++---- .../cloudsigma/CloudSigmaAsyncClientTest.java | 8 ++++---- .../cloudsigma/CloudSigmaClientLiveTest.java | 19 ++++++++----------- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/providers/cloudsigma-zrh/src/main/java/org/jclouds/cloudsigma/CloudSigmaAsyncClient.java b/providers/cloudsigma-zrh/src/main/java/org/jclouds/cloudsigma/CloudSigmaAsyncClient.java index 9df39bec8b..75efcfd63e 100644 --- a/providers/cloudsigma-zrh/src/main/java/org/jclouds/cloudsigma/CloudSigmaAsyncClient.java +++ b/providers/cloudsigma-zrh/src/main/java/org/jclouds/cloudsigma/CloudSigmaAsyncClient.java @@ -202,7 +202,7 @@ public interface CloudSigmaAsyncClient { /** * @see CloudSigmaClient#destroyServer */ - @POST + @GET @Path("/servers/{uuid}/destroy") @ExceptionParser(ReturnVoidOnNotFoundOr404.class) ListenableFuture destroyServer(@PathParam("uuid") String uuid); @@ -246,7 +246,7 @@ public interface CloudSigmaAsyncClient { /** * @see CloudSigmaClient#destroyDrive */ - @POST + @GET @Path("/drives/{uuid}/destroy") @ExceptionParser(ReturnVoidOnNotFoundOr404.class) ListenableFuture destroyDrive(@PathParam("uuid") String uuid); @@ -297,7 +297,7 @@ public interface CloudSigmaAsyncClient { /** * @see CloudSigmaClient#destroyVLAN */ - @POST + @GET @Path("/resources/vlan/{uuid}/destroy") @ExceptionParser(ReturnVoidOnNotFoundOr404.class) ListenableFuture destroyVLAN(@PathParam("uuid") String uuid); @@ -339,7 +339,7 @@ public interface CloudSigmaAsyncClient { /** * @see CloudSigmaClient#destroyStaticIP */ - @POST + @GET @Path("/resources/ip/{uuid}/destroy") @ExceptionParser(ReturnVoidOnNotFoundOr404.class) ListenableFuture destroyStaticIP(@PathParam("uuid") String uuid); diff --git a/providers/cloudsigma-zrh/src/test/java/org/jclouds/cloudsigma/CloudSigmaAsyncClientTest.java b/providers/cloudsigma-zrh/src/test/java/org/jclouds/cloudsigma/CloudSigmaAsyncClientTest.java index 6772a832d9..51df12ab58 100644 --- a/providers/cloudsigma-zrh/src/test/java/org/jclouds/cloudsigma/CloudSigmaAsyncClientTest.java +++ b/providers/cloudsigma-zrh/src/test/java/org/jclouds/cloudsigma/CloudSigmaAsyncClientTest.java @@ -323,7 +323,7 @@ public class CloudSigmaAsyncClientTest extends RestClientTest