From 6543f3af7a3317f466edc01cbce95588ea04d2db 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 | 24 ++++--------------- 3 files changed, 12 insertions(+), 28 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 c271e0ce7b..d886ecf841 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 @@ -203,7 +203,7 @@ public interface CloudSigmaAsyncClient { /** * @see CloudSigmaClient#destroyServer */ - @POST + @GET @Path("/servers/{uuid}/destroy") @ExceptionParser(ReturnVoidOnNotFoundOr404.class) ListenableFuture destroyServer(@PathParam("uuid") String uuid); @@ -247,7 +247,7 @@ public interface CloudSigmaAsyncClient { /** * @see CloudSigmaClient#destroyDrive */ - @POST + @GET @Path("/drives/{uuid}/destroy") @ExceptionParser(ReturnVoidOnNotFoundOr404.class) ListenableFuture destroyDrive(@PathParam("uuid") String uuid); @@ -301,7 +301,7 @@ public interface CloudSigmaAsyncClient { /** * @see CloudSigmaClient#destroyVLAN */ - @POST + @GET @Path("/resources/vlan/{uuid}/destroy") @ExceptionParser(ReturnVoidOnNotFoundOr404.class) ListenableFuture destroyVLAN(@PathParam("uuid") String uuid); @@ -343,7 +343,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