mirror of https://github.com/apache/jclouds.git
Add S3Proxy profile to skip failing tests
This commit is contained in:
parent
6bff97b6d3
commit
08e78c979e
|
@ -139,6 +139,29 @@
|
|||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>s3proxy</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>integration</id>
|
||||
<phase>integration-test</phase>
|
||||
<goals>
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<excludedGroups>fails-on-s3proxy</excludedGroups>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue