From 08e78c979e6c241bebbb1d451d8359b3c49e7205 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Mon, 11 Jul 2016 14:17:33 -0700 Subject: [PATCH] Add S3Proxy profile to skip failing tests --- apis/s3/pom.xml | 23 +++++++++++++++++++ .../java/org/jclouds/s3/S3ClientLiveTest.java | 4 ++++ .../integration/S3ContainerLiveTest.java | 22 ++++++++++++++++++ .../jclouds/s3/services/BucketsLiveTest.java | 3 +++ 4 files changed, 52 insertions(+) diff --git a/apis/s3/pom.xml b/apis/s3/pom.xml index 8f4c738143..37e764c11f 100644 --- a/apis/s3/pom.xml +++ b/apis/s3/pom.xml @@ -139,6 +139,29 @@ + + s3proxy + + + + org.apache.maven.plugins + maven-surefire-plugin + + + integration + integration-test + + test + + + fails-on-s3proxy + + + + + + + diff --git a/apis/s3/src/test/java/org/jclouds/s3/S3ClientLiveTest.java b/apis/s3/src/test/java/org/jclouds/s3/S3ClientLiveTest.java index a4b87a14c5..73a9eff6f6 100644 --- a/apis/s3/src/test/java/org/jclouds/s3/S3ClientLiveTest.java +++ b/apis/s3/src/test/java/org/jclouds/s3/S3ClientLiveTest.java @@ -111,6 +111,7 @@ public class S3ClientLiveTest extends BaseBlobStoreIntegrationTest { return url; } + @Test(groups = {"fails-on-s3proxy"}) public void testPutCannedAccessPolicyPublic() throws Exception { String containerName = getContainerName(); try { @@ -130,6 +131,7 @@ public class S3ClientLiveTest extends BaseBlobStoreIntegrationTest { } + @Test(groups = {"fails-on-s3proxy"}) public void testCopyCannedAccessPolicyPublic() throws Exception { String containerName = getContainerName(); String destinationContainer = getContainerName(); @@ -154,6 +156,7 @@ public class S3ClientLiveTest extends BaseBlobStoreIntegrationTest { String sourceKey = "apples"; String destinationKey = "pears"; + @Test(groups = {"fails-on-s3proxy"}) public void testPublicWriteOnObject() throws InterruptedException, ExecutionException, TimeoutException, IOException { final String publicReadWriteObjectKey = "public-read-write-acl"; final String containerName = getContainerName(); @@ -191,6 +194,7 @@ public class S3ClientLiveTest extends BaseBlobStoreIntegrationTest { } + @Test(groups = {"fails-on-s3proxy"}) public void testUpdateObjectACL() throws InterruptedException, ExecutionException, TimeoutException, IOException { String containerName = getContainerName(); try { diff --git a/apis/s3/src/test/java/org/jclouds/s3/blobstore/integration/S3ContainerLiveTest.java b/apis/s3/src/test/java/org/jclouds/s3/blobstore/integration/S3ContainerLiveTest.java index 7c90ea6203..48e7dc7d01 100644 --- a/apis/s3/src/test/java/org/jclouds/s3/blobstore/integration/S3ContainerLiveTest.java +++ b/apis/s3/src/test/java/org/jclouds/s3/blobstore/integration/S3ContainerLiveTest.java @@ -16,6 +16,9 @@ */ package org.jclouds.s3.blobstore.integration; +import java.io.IOException; +import java.net.MalformedURLException; + import org.jclouds.blobstore.integration.internal.BaseBlobStoreIntegrationTest; import org.jclouds.blobstore.integration.internal.BaseContainerLiveTest; import org.testng.annotations.Test; @@ -27,4 +30,23 @@ public class S3ContainerLiveTest extends BaseContainerLiveTest { provider = "s3"; BaseBlobStoreIntegrationTest.SANITY_CHECK_RETURNED_BUCKET_NAME = true; } + + @Override + @Test(groups = {"live", "fails-on-s3proxy"}) + public void testPublicAccess() throws InterruptedException, MalformedURLException, IOException { + super.testPublicAccess(); + } + + @Override + @Test(groups = {"live", "fails-on-s3proxy"}, dependsOnMethods = "testPublicAccess") + public void testPublicAccessInNonDefaultLocation() throws InterruptedException, MalformedURLException, IOException { + super.testPublicAccessInNonDefaultLocation(); + } + + @Override + @Test(groups = {"live", "fails-on-s3proxy"}, dependsOnMethods = "testPublicAccess") + public void testPublicAccessInNonDefaultLocationWithBigBlob() throws InterruptedException, MalformedURLException, + IOException { + super.testPublicAccessInNonDefaultLocationWithBigBlob(); + } } diff --git a/apis/s3/src/test/java/org/jclouds/s3/services/BucketsLiveTest.java b/apis/s3/src/test/java/org/jclouds/s3/services/BucketsLiveTest.java index bb9891f3dd..285f72b9b1 100644 --- a/apis/s3/src/test/java/org/jclouds/s3/services/BucketsLiveTest.java +++ b/apis/s3/src/test/java/org/jclouds/s3/services/BucketsLiveTest.java @@ -108,6 +108,7 @@ public class BucketsLiveTest extends BaseBlobStoreIntegrationTest { } + @Test(groups = {"fails-on-s3proxy"}) public void testUpdateBucketACL() throws InterruptedException, ExecutionException, TimeoutException, IOException, Exception { String bucketName = getContainerName(); @@ -177,6 +178,7 @@ public class BucketsLiveTest extends BaseBlobStoreIntegrationTest { } + @Test(groups = {"fails-on-s3proxy"}) public void testBucketPayer() throws Exception { final String bucketName = getContainerName(); try { @@ -207,6 +209,7 @@ public class BucketsLiveTest extends BaseBlobStoreIntegrationTest { } } + @Test(groups = {"fails-on-s3proxy"}) public void testBucketLogging() throws Exception { final String bucketName = getContainerName(); final String targetBucket = getContainerName();