mirror of https://github.com/apache/jclouds.git
increased default timeout so ec2 can finish
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1497 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
e9ec5109e3
commit
fe012d98e2
|
@ -37,14 +37,15 @@ import org.testng.annotations.Test;
|
||||||
import static org.testng.Assert.assertEquals;
|
import static org.testng.Assert.assertEquals;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* // TODO: Adrian: Document this!
|
* Tests for functionality all HttpFutureCommandClients must express. These tests will operate
|
||||||
|
* against an in-memory http engine, so as to ensure end-to-end functionality works.
|
||||||
*
|
*
|
||||||
* @author Adrian Cole
|
* @author Adrian Cole
|
||||||
*/
|
*/
|
||||||
@Test(threadPoolSize = 10)
|
@Test(threadPoolSize = 10)
|
||||||
public abstract class BaseHttpFutureCommandClientTest extends BaseJettyTest {
|
public abstract class BaseHttpFutureCommandClientTest extends BaseJettyTest {
|
||||||
|
|
||||||
@Test(invocationCount = 50, timeOut = 3000)
|
@Test(invocationCount = 50, timeOut = 5000)
|
||||||
public void testRequestFilter() throws MalformedURLException, ExecutionException,
|
public void testRequestFilter() throws MalformedURLException, ExecutionException,
|
||||||
InterruptedException, TimeoutException {
|
InterruptedException, TimeoutException {
|
||||||
GetString get = factory.createGetString("/");
|
GetString get = factory.createGetString("/");
|
||||||
|
@ -53,7 +54,7 @@ public abstract class BaseHttpFutureCommandClientTest extends BaseJettyTest {
|
||||||
assertEquals(get.get(10, TimeUnit.SECONDS).trim(), "test");
|
assertEquals(get.get(10, TimeUnit.SECONDS).trim(), "test");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(invocationCount = 50, timeOut = 3000)
|
@Test(invocationCount = 50, timeOut = 5000)
|
||||||
public void testGetStringWithHeader() throws MalformedURLException, ExecutionException,
|
public void testGetStringWithHeader() throws MalformedURLException, ExecutionException,
|
||||||
InterruptedException, TimeoutException {
|
InterruptedException, TimeoutException {
|
||||||
GetString get = factory.createGetString("/");
|
GetString get = factory.createGetString("/");
|
||||||
|
@ -62,7 +63,7 @@ public abstract class BaseHttpFutureCommandClientTest extends BaseJettyTest {
|
||||||
assertEquals(get.get(10, TimeUnit.SECONDS).trim(), "test");
|
assertEquals(get.get(10, TimeUnit.SECONDS).trim(), "test");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(invocationCount = 50, timeOut = 3000)
|
@Test(invocationCount = 50, timeOut = 5000)
|
||||||
public void testGetString() throws MalformedURLException, ExecutionException,
|
public void testGetString() throws MalformedURLException, ExecutionException,
|
||||||
InterruptedException, TimeoutException {
|
InterruptedException, TimeoutException {
|
||||||
GetString get = factory.createGetString("/");
|
GetString get = factory.createGetString("/");
|
||||||
|
@ -72,7 +73,7 @@ public abstract class BaseHttpFutureCommandClientTest extends BaseJettyTest {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(invocationCount = 50, timeOut = 3000)
|
@Test(invocationCount = 50, timeOut = 5000)
|
||||||
public void testGetStringRedirect() throws MalformedURLException, ExecutionException,
|
public void testGetStringRedirect() throws MalformedURLException, ExecutionException,
|
||||||
InterruptedException, TimeoutException {
|
InterruptedException, TimeoutException {
|
||||||
GetString get = factory.createGetString("/redirect");
|
GetString get = factory.createGetString("/redirect");
|
||||||
|
@ -81,7 +82,7 @@ public abstract class BaseHttpFutureCommandClientTest extends BaseJettyTest {
|
||||||
assertEquals(get.get(10, TimeUnit.SECONDS).trim(), XML2);
|
assertEquals(get.get(10, TimeUnit.SECONDS).trim(), XML2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(invocationCount = 50, timeOut = 3000)
|
@Test(invocationCount = 50, timeOut = 5000)
|
||||||
public void testGetStringPermanentRedirect() throws MalformedURLException, ExecutionException,
|
public void testGetStringPermanentRedirect() throws MalformedURLException, ExecutionException,
|
||||||
InterruptedException, TimeoutException {
|
InterruptedException, TimeoutException {
|
||||||
// GetString get = factory.createGetString("/permanentredirect");
|
// GetString get = factory.createGetString("/permanentredirect");
|
||||||
|
@ -91,7 +92,7 @@ public abstract class BaseHttpFutureCommandClientTest extends BaseJettyTest {
|
||||||
// TODO assert misses are only one, as permanent redirects paths should be remembered.
|
// TODO assert misses are only one, as permanent redirects paths should be remembered.
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(invocationCount = 50, timeOut = 3000)
|
@Test(invocationCount = 50, timeOut = 5000)
|
||||||
public void testPutRedirect() throws MalformedURLException, ExecutionException,
|
public void testPutRedirect() throws MalformedURLException, ExecutionException,
|
||||||
InterruptedException, TimeoutException {
|
InterruptedException, TimeoutException {
|
||||||
Put put = factory.createPut("/redirect", "foo");
|
Put put = factory.createPut("/redirect", "foo");
|
||||||
|
@ -101,7 +102,7 @@ public abstract class BaseHttpFutureCommandClientTest extends BaseJettyTest {
|
||||||
assertEquals(put.get(10, TimeUnit.SECONDS), new Boolean(true));
|
assertEquals(put.get(10, TimeUnit.SECONDS), new Boolean(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(invocationCount = 50, timeOut = 3000)
|
@Test(invocationCount = 50, timeOut = 5000)
|
||||||
public void testHead() throws MalformedURLException, ExecutionException, InterruptedException,
|
public void testHead() throws MalformedURLException, ExecutionException, InterruptedException,
|
||||||
TimeoutException {
|
TimeoutException {
|
||||||
Head head = factory.createHead("/");
|
Head head = factory.createHead("/");
|
||||||
|
@ -110,7 +111,7 @@ public abstract class BaseHttpFutureCommandClientTest extends BaseJettyTest {
|
||||||
assert head.get(10, TimeUnit.SECONDS);
|
assert head.get(10, TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(invocationCount = 50, timeOut = 3000)
|
@Test(invocationCount = 50, timeOut = 5000)
|
||||||
public void testGetAndParseSax() throws MalformedURLException, ExecutionException,
|
public void testGetAndParseSax() throws MalformedURLException, ExecutionException,
|
||||||
InterruptedException, TimeoutException {
|
InterruptedException, TimeoutException {
|
||||||
GetAndParseSax<?> getAndParseSax = factory.createGetAndParseSax("/",
|
GetAndParseSax<?> getAndParseSax = factory.createGetAndParseSax("/",
|
||||||
|
|
Loading…
Reference in New Issue