mirror of https://github.com/apache/jclouds.git
Skip unimplemented signed URL tests in S3 provider
jclouds aws-s3 provider supports these but s3 does not. Also expect
failure in atmos and azureblob. Follow on to
a4c40e15cd
.
This commit is contained in:
parent
e423bc949e
commit
41bdd9c5a9
|
@ -16,6 +16,8 @@
|
|||
*/
|
||||
package org.jclouds.atmos.blobstore.integration;
|
||||
|
||||
import static org.testng.Assert.fail;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.jclouds.blobstore.integration.internal.BaseBlobSignerLiveTest;
|
||||
|
@ -32,6 +34,7 @@ public class AtmosBlobSignerLiveTest extends BaseBlobSignerLiveTest {
|
|||
public void testSignGetUrlWithTime() throws InterruptedException, IOException {
|
||||
try {
|
||||
super.testSignGetUrlWithTime();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported in Atmos", uoe);
|
||||
}
|
||||
|
@ -41,6 +44,7 @@ public class AtmosBlobSignerLiveTest extends BaseBlobSignerLiveTest {
|
|||
public void testSignGetUrlWithTimeExpired() throws InterruptedException, IOException {
|
||||
try {
|
||||
super.testSignGetUrlWithTimeExpired();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported in Atmos", uoe);
|
||||
}
|
||||
|
@ -50,6 +54,7 @@ public class AtmosBlobSignerLiveTest extends BaseBlobSignerLiveTest {
|
|||
public void testSignPutUrlWithTime() throws Exception {
|
||||
try {
|
||||
super.testSignPutUrlWithTime();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported in Atmos", uoe);
|
||||
}
|
||||
|
@ -59,6 +64,7 @@ public class AtmosBlobSignerLiveTest extends BaseBlobSignerLiveTest {
|
|||
public void testSignPutUrlWithTimeExpired() throws Exception {
|
||||
try {
|
||||
super.testSignPutUrlWithTimeExpired();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported in Atmos", uoe);
|
||||
}
|
||||
|
|
|
@ -16,8 +16,13 @@
|
|||
*/
|
||||
package org.jclouds.s3.blobstore.integration;
|
||||
|
||||
import static org.testng.Assert.fail;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.jclouds.blobstore.integration.internal.BaseBlobSignerLiveTest;
|
||||
import org.jclouds.blobstore.integration.internal.BaseBlobStoreIntegrationTest;
|
||||
import org.testng.SkipException;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
@Test(groups = "live", testName = "S3BlobSignerLiveTest")
|
||||
|
@ -27,4 +32,44 @@ public class S3BlobSignerLiveTest extends BaseBlobSignerLiveTest {
|
|||
provider = "s3";
|
||||
BaseBlobStoreIntegrationTest.SANITY_CHECK_RETURNED_BUCKET_NAME = true;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSignGetUrlWithTime() throws InterruptedException, IOException {
|
||||
try {
|
||||
super.testSignGetUrlWithTime();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported by S3 signer", uoe);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSignGetUrlWithTimeExpired() throws InterruptedException, IOException {
|
||||
try {
|
||||
super.testSignGetUrlWithTimeExpired();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported by S3 signer", uoe);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSignPutUrlWithTime() throws Exception {
|
||||
try {
|
||||
super.testSignPutUrlWithTime();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported by S3 signer", uoe);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSignPutUrlWithTimeExpired() throws Exception {
|
||||
try {
|
||||
super.testSignPutUrlWithTimeExpired();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported by S3 signer", uoe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
*/
|
||||
package org.jclouds.azureblob.blobstore.integration;
|
||||
|
||||
import static org.testng.Assert.fail;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.jclouds.blobstore.integration.internal.BaseBlobSignerLiveTest;
|
||||
|
@ -32,6 +34,7 @@ public class AzureBlobSignerLiveTest extends BaseBlobSignerLiveTest {
|
|||
public void testSignGetUrlWithTime() throws InterruptedException, IOException {
|
||||
try {
|
||||
super.testSignGetUrlWithTime();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported in Azure", uoe);
|
||||
}
|
||||
|
@ -41,6 +44,7 @@ public class AzureBlobSignerLiveTest extends BaseBlobSignerLiveTest {
|
|||
public void testSignGetUrlWithTimeExpired() throws InterruptedException, IOException {
|
||||
try {
|
||||
super.testSignGetUrlWithTimeExpired();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported in Azure", uoe);
|
||||
}
|
||||
|
@ -50,6 +54,7 @@ public class AzureBlobSignerLiveTest extends BaseBlobSignerLiveTest {
|
|||
public void testSignPutUrlWithTime() throws Exception {
|
||||
try {
|
||||
super.testSignPutUrlWithTime();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported in Azure", uoe);
|
||||
}
|
||||
|
@ -59,6 +64,7 @@ public class AzureBlobSignerLiveTest extends BaseBlobSignerLiveTest {
|
|||
public void testSignPutUrlWithTimeExpired() throws Exception {
|
||||
try {
|
||||
super.testSignPutUrlWithTimeExpired();
|
||||
fail();
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("not supported in Azure", uoe);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue