From dc1b74cc9050ee709e136de05be727283fa7e7d8 Mon Sep 17 00:00:00 2001 From: Jason King Date: Mon, 14 Nov 2011 12:13:57 +0000 Subject: [PATCH] Issue 695: Added ecloud to terremark api calls --- sandbox-providers/trmk-enterprisecloud/pom.xml | 2 +- .../TerremarkEnterpriseCloudPropertiesBuilder.java | 2 +- .../trmk/enterprisecloud/features/TaskAsyncClientTest.java | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sandbox-providers/trmk-enterprisecloud/pom.xml b/sandbox-providers/trmk-enterprisecloud/pom.xml index 5ce44f4757..b624a5d8bc 100644 --- a/sandbox-providers/trmk-enterprisecloud/pom.xml +++ b/sandbox-providers/trmk-enterprisecloud/pom.xml @@ -48,7 +48,7 @@ - https://services-beta.enterprisecloud.terremark.com/cloudapi + https://services-beta.enterprisecloud.terremark.com/cloudapi/ecloud 2011-07-01 FIXME FIXME diff --git a/sandbox-providers/trmk-enterprisecloud/src/main/java/org/jclouds/trmk/enterprisecloud/TerremarkEnterpriseCloudPropertiesBuilder.java b/sandbox-providers/trmk-enterprisecloud/src/main/java/org/jclouds/trmk/enterprisecloud/TerremarkEnterpriseCloudPropertiesBuilder.java index cdf78549e2..79f373d39f 100644 --- a/sandbox-providers/trmk-enterprisecloud/src/main/java/org/jclouds/trmk/enterprisecloud/TerremarkEnterpriseCloudPropertiesBuilder.java +++ b/sandbox-providers/trmk-enterprisecloud/src/main/java/org/jclouds/trmk/enterprisecloud/TerremarkEnterpriseCloudPropertiesBuilder.java @@ -34,7 +34,7 @@ public class TerremarkEnterpriseCloudPropertiesBuilder extends PropertiesBuilder @Override protected Properties defaultProperties() { Properties properties = super.defaultProperties(); - properties.setProperty(PROPERTY_ENDPOINT, "https://services-beta.enterprisecloud.terremark.com/cloudapi"); + properties.setProperty(PROPERTY_ENDPOINT, "https://services-beta.enterprisecloud.terremark.com/cloudapi/ecloud"); properties.setProperty(PROPERTY_API_VERSION, "2011-07-01"); return properties; } diff --git a/sandbox-providers/trmk-enterprisecloud/src/test/java/org/jclouds/trmk/enterprisecloud/features/TaskAsyncClientTest.java b/sandbox-providers/trmk-enterprisecloud/src/test/java/org/jclouds/trmk/enterprisecloud/features/TaskAsyncClientTest.java index ce31f8add0..68b85be261 100644 --- a/sandbox-providers/trmk-enterprisecloud/src/test/java/org/jclouds/trmk/enterprisecloud/features/TaskAsyncClientTest.java +++ b/sandbox-providers/trmk-enterprisecloud/src/test/java/org/jclouds/trmk/enterprisecloud/features/TaskAsyncClientTest.java @@ -44,7 +44,7 @@ public class TaskAsyncClientTest extends BaseTerremarkEnterpriseCloudAsyncClient Method method = TaskAsyncClient.class.getMethod("getTasksInEnvironment", long.class); HttpRequest httpRequest = processor.createRequest(method, 1l); - assertRequestLineEquals(httpRequest, "GET https://services-beta.enterprisecloud.terremark.com/cloudapi/tasks/environments/1 HTTP/1.1"); + assertRequestLineEquals(httpRequest, "GET https://services-beta.enterprisecloud.terremark.com/cloudapi/ecloud/tasks/environments/1 HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, "Accept: application/vnd.tmrk.cloud.task; type=collection\nx-trmk-version: 2011-07-01\n"); assertPayloadEquals(httpRequest, null, null, false); @@ -59,9 +59,9 @@ public class TaskAsyncClientTest extends BaseTerremarkEnterpriseCloudAsyncClient public void testGetTask() throws SecurityException, NoSuchMethodException, IOException { Method method = TaskAsyncClient.class.getMethod("getTask", URI.class); - HttpRequest httpRequest = processor.createRequest(method, URI.create("https://services-beta.enterprisecloud.terremark.com/cloudapi/tasks/1")); + HttpRequest httpRequest = processor.createRequest(method, URI.create("https://services-beta.enterprisecloud.terremark.com/cloudapi/ecloud/tasks/1")); - assertRequestLineEquals(httpRequest, "GET https://services-beta.enterprisecloud.terremark.com/cloudapi/tasks/1 HTTP/1.1"); + assertRequestLineEquals(httpRequest, "GET https://services-beta.enterprisecloud.terremark.com/cloudapi/ecloud/tasks/1 HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, "Accept: application/vnd.tmrk.cloud.task\nx-trmk-version: 2011-07-01\n"); assertPayloadEquals(httpRequest, null, null, false);