From 193de5814e3bef4b14a61f9bb1060e013d593fe0 Mon Sep 17 00:00:00 2001 From: "adrian.f.cole" Date: Sat, 12 Dec 2009 06:23:05 +0000 Subject: [PATCH] Issue 112: changed tests to only use port 22 until internet service issue is worked out git-svn-id: http://jclouds.googlecode.com/svn/trunk@2402 3d8758e0-26b5-11de-8745-db77d3ebf521 --- .../terremark/compute/TerremarkVCloudComputeService.java | 6 +++--- .../compute/TerremarkVCloudComputeClientLiveTest.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vcloud/terremark/src/main/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeService.java b/vcloud/terremark/src/main/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeService.java index a3f2f5bd7e..20e371b98b 100644 --- a/vcloud/terremark/src/main/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeService.java +++ b/vcloud/terremark/src/main/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeService.java @@ -72,10 +72,10 @@ public class TerremarkVCloudComputeService implements ComputeService { public CreateServerResponse createServer(String name, Profile profile, Image image) { String id = computeClient.start(name, 1, 512, image); VApp vApp = tmClient.getVApp(id); - InetAddress publicIp = computeClient.createPublicAddressMappedToPorts(vApp, 22, 80, 8080); + InetAddress publicIp = computeClient.createPublicAddressMappedToPorts(vApp, 22); return new CreateServerResponseImpl(vApp.getId(), vApp.getName(), ImmutableSet - . of(publicIp), vApp.getNetworkToAddresses().values(), 22, LoginType.SSH, - new Credentials("vcloud", "p4ssw0rd")); + . of(publicIp), vApp.getNetworkToAddresses().values(), 22, + LoginType.SSH, new Credentials("vcloud", "p4ssw0rd")); } @Override diff --git a/vcloud/terremark/src/test/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeClientLiveTest.java b/vcloud/terremark/src/test/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeClientLiveTest.java index ce8393607e..07669e7448 100644 --- a/vcloud/terremark/src/test/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeClientLiveTest.java +++ b/vcloud/terremark/src/test/java/org/jclouds/vcloud/terremark/compute/TerremarkVCloudComputeClientLiveTest.java @@ -119,7 +119,7 @@ public class TerremarkVCloudComputeClientLiveTest { @Test(dependsOnMethods = "testGetAnyPrivateAddress") public void testSshLoadBalanceIp() { - InetAddress publicIp = client.createPublicAddressMappedToPorts(tmClient.getVApp(id), 22, 80); + InetAddress publicIp = client.createPublicAddressMappedToPorts(tmClient.getVApp(id), 22); assert addressTester.apply(publicIp); // client.exec(publicIp, "uname -a"); }