From dc7914c1f5f68c5ead4777f1ae28f5a746d8fa43 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 27 Dec 2010 22:12:51 +0100 Subject: [PATCH] updated perftest to latest dependencies --- aws/perftest/pom.xml | 14 +++++++------- .../aws/s3/BaseJCloudsPerformanceLiveTest.java | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/aws/perftest/pom.xml b/aws/perftest/pom.xml index 669cf496c4..b674287383 100644 --- a/aws/perftest/pom.xml +++ b/aws/perftest/pom.xml @@ -35,9 +35,9 @@ --> YOUR_APPENGINE_HOME 100 - ${jclouds.aws.accesskeyid} - ${jclouds.aws.secretaccesskey} - org.jclouds.aws.s3.blobstore.integration.S3TestInitializer + ${test.aws.identity} + ${test.aws.credential} + org.jclouds.aws.s3.blobstore.integration.S3TestInitializer @@ -54,12 +54,12 @@ com.amazonaws aws-java-sdk - 1.0.007 + 1.1.1 net.java.dev.jets3t jets3t - 0.7.4 + 0.8.0 ${project.groupId} @@ -151,8 +151,8 @@ ${jclouds.test.credential} - jclouds.test.initializer - ${jclouds.test.initializer} + test.initializer + ${test.initializer} jclouds.test.loopcount diff --git a/aws/perftest/src/test/java/org/jclouds/aws/s3/BaseJCloudsPerformanceLiveTest.java b/aws/perftest/src/test/java/org/jclouds/aws/s3/BaseJCloudsPerformanceLiveTest.java index 82798750c8..5c01cab67e 100644 --- a/aws/perftest/src/test/java/org/jclouds/aws/s3/BaseJCloudsPerformanceLiveTest.java +++ b/aws/perftest/src/test/java/org/jclouds/aws/s3/BaseJCloudsPerformanceLiveTest.java @@ -68,8 +68,8 @@ public abstract class BaseJCloudsPerformanceLiveTest extends BasePerformanceLive @Override protected Future putByteArray(String bucket, String key, byte[] data, String contentType) { S3Object object = newObject(key); - object.getMetadata().setContentType(contentType); object.setPayload(data); + object.getPayload().getContentMetadata().setContentType(contentType); return getApi().putObject(bucket, object); } @@ -78,8 +78,8 @@ public abstract class BaseJCloudsPerformanceLiveTest extends BasePerformanceLive @Override protected Future putFile(String bucket, String key, File data, String contentType) { S3Object object = newObject(key); - object.getMetadata().setContentType(contentType); object.setPayload(data); + object.getPayload().getContentMetadata().setContentType(contentType); return getApi().putObject(bucket, object); } @@ -94,19 +94,19 @@ public abstract class BaseJCloudsPerformanceLiveTest extends BasePerformanceLive S3Object object = newObject(key); object.setPayload(data); try { - object.getPayload().setContentLength(new Long(data.available())); + object.getPayload().getContentMetadata().setContentLength(new Long(data.available())); } catch (IOException e) { Throwables.propagate(e); } - object.getPayload().setContentType(contentType); + object.getPayload().getContentMetadata().setContentType(contentType); return getApi().putObject(bucket, object); } @Override protected Future putString(String bucket, String key, String data, String contentType) { S3Object object = newObject(key); - object.getMetadata().setContentType(contentType); object.setPayload(data); + object.getPayload().getContentMetadata().setContentType(contentType); return getApi().putObject(bucket, object); } }