From bcf8e3fe5050e3de6f21ecb3b5c9a2f5943ca4af Mon Sep 17 00:00:00 2001 From: zack-shoylev Date: Fri, 14 Jun 2013 18:08:02 -0500 Subject: [PATCH] Fixes testCreateAndRunAService by fixing the outdated jetty URL --- .../src/test/java/org/jclouds/compute/JettyStatements.java | 4 ++-- .../jclouds/compute/internal/BaseComputeServiceLiveTest.java | 2 +- compute/src/test/resources/initscript_with_jetty.sh | 2 +- .../compute/CloudServersUKComputeServiceLiveTest.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compute/src/test/java/org/jclouds/compute/JettyStatements.java b/compute/src/test/java/org/jclouds/compute/JettyStatements.java index 96805185b6..ff795417bc 100644 --- a/compute/src/test/java/org/jclouds/compute/JettyStatements.java +++ b/compute/src/test/java/org/jclouds/compute/JettyStatements.java @@ -33,8 +33,8 @@ import org.jclouds.scriptbuilder.statements.login.AdminAccess; */ public class JettyStatements { - public static final URI JETTY_URL = URI.create(System.getProperty("test.jetty-url",// - "http://download.eclipse.org/jetty/8.1.8.v20121106/dist/jetty-distribution-8.1.8.v20121106.tar.gz")); + public static final URI JETTY_URL = URI.create(System.getProperty("test.jetty-url", + "http://archive.eclipse.org/jetty/8.1.8.v20121106/dist/jetty-distribution-8.1.8.v20121106.tar.gz")); public static final String JETTY_HOME = "/usr/local/jetty"; diff --git a/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java b/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java index eba00cb0ae..97b548fae2 100644 --- a/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java +++ b/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java @@ -633,7 +633,7 @@ public abstract class BaseComputeServiceLiveTest extends BaseComputeServiceConte HostAndPort socket = null; try { - socket = openSocketFinder.findOpenSocketOnNode(node, 8080, 60, TimeUnit.SECONDS); + socket = openSocketFinder.findOpenSocketOnNode(node, 8080, 600, TimeUnit.SECONDS); } catch (NoSuchElementException e) { throw new NoSuchElementException(format("%s%n%s%s", e.getMessage(), exec.getOutput(), exec.getError())); } diff --git a/compute/src/test/resources/initscript_with_jetty.sh b/compute/src/test/resources/initscript_with_jetty.sh index d5a5e3d1b8..fca9683265 100644 --- a/compute/src/test/resources/initscript_with_jetty.sh +++ b/compute/src/test/resources/initscript_with_jetty.sh @@ -228,7 +228,7 @@ END_OF_JCLOUDS_SCRIPT iptables -I INPUT 1 -p tcp --dport 8080 -j ACCEPT iptables-save mkdir /tmp/$$ - curl -q -s -S -L --connect-timeout 10 --max-time 600 --retry 20 -X GET http://download.eclipse.org/jetty/8.1.8.v20121106/dist/jetty-distribution-8.1.8.v20121106.tar.gz |(mkdir -p /tmp/$$ &&cd /tmp/$$ &&tar -xpzf -) + curl -q -s -S -L --connect-timeout 10 --max-time 600 --retry 20 -X GET http://archive.eclipse.org/jetty/8.1.8.v20121106/dist/jetty-distribution-8.1.8.v20121106.tar.gz |(mkdir -p /tmp/$$ &&cd /tmp/$$ &&tar -xpzf -) mkdir -p /usr/local/jetty mv /tmp/$$/*/* /usr/local/jetty rm -rf /tmp/$$ diff --git a/providers/cloudservers-uk/src/test/java/org/jclouds/rackspace/cloudservers/compute/CloudServersUKComputeServiceLiveTest.java b/providers/cloudservers-uk/src/test/java/org/jclouds/rackspace/cloudservers/compute/CloudServersUKComputeServiceLiveTest.java index c4b2f6c1c3..91a9830eed 100644 --- a/providers/cloudservers-uk/src/test/java/org/jclouds/rackspace/cloudservers/compute/CloudServersUKComputeServiceLiveTest.java +++ b/providers/cloudservers-uk/src/test/java/org/jclouds/rackspace/cloudservers/compute/CloudServersUKComputeServiceLiveTest.java @@ -23,7 +23,7 @@ import org.testng.annotations.Test; * * @author Adrian Cole */ -@Test(groups = "live", sequential = true, testName = "CloudServersUKComputeServiceLiveTest") +@Test(groups = "live", singleThreaded = true, testName = "CloudServersUKComputeServiceLiveTest") public class CloudServersUKComputeServiceLiveTest extends CloudServersComputeServiceLiveTest { public CloudServersUKComputeServiceLiveTest() {