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); } }