fixed integration test that downloads remote files

git-svn-id: http://jclouds.googlecode.com/svn/trunk@1846 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-08-09 22:47:03 +00:00
parent 780b347a59
commit 6dc3d789c1
1 changed files with 4 additions and 4 deletions

View File

@ -46,17 +46,17 @@ import org.testng.annotations.Test;
public class S3ConnectionLiveTest extends S3IntegrationTest {
private static final String sysHttpStreamUrl = System.getProperty("jclouds.s3.httpstream.url");
private static final String sysHttpStreamETag = System.getProperty("jclouds.s3.httpstream.eTag");
private static final String sysHttpStreamETag = System.getProperty("jclouds.s3.httpstream.md5");
@Test
@Parameters( { "jclouds.s3.httpstream.url", "jclouds.s3.httpstream.eTag" })
@Parameters( { "jclouds.s3.httpstream.url", "jclouds.s3.httpstream.md5" })
public void testCopyUrl(@Optional String httpStreamUrl, @Optional String httpStreamETag)
throws Exception {
httpStreamUrl = checkNotNull(httpStreamUrl != null ? httpStreamUrl : sysHttpStreamUrl,
"httpStreamUrl");
httpStreamETag = checkNotNull(httpStreamETag != null ? httpStreamETag : sysHttpStreamETag,
"httpStreamETag");
"httpStreamMd5");
String key = "hello";
@ -73,7 +73,7 @@ public class S3ConnectionLiveTest extends S3IntegrationTest {
object.getMetadata().setSize(length);
String bucketName = getBucketName();
try {
byte[] newETag = client.putObject(bucketName, object).get(30, TimeUnit.SECONDS);
byte[] newETag = client.putObject(bucketName, object).get(180, TimeUnit.SECONDS);
assertEquals(newETag, eTag);
} finally {
returnBucket(bucketName);