kopia lustrzana https://github.com/gaul/s3proxy
Run unknown parameter test
JCLOUDS-258 allows use of MPU with the generic S3 provider.pull/41/head
rodzic
a6c5fabb0b
commit
4ebbce7956
|
@ -17,7 +17,7 @@
|
|||
<module name="AvoidNestedBlocks"/>
|
||||
<module name="AvoidStarImport"/>
|
||||
<module name="AvoidStaticImport">
|
||||
<property name="excludes" value="org.assertj.core.api.Assertions.assertThat"/>
|
||||
<property name="excludes" value="org.assertj.core.api.Assertions.assertThat,org.junit.Assert.fail"/>
|
||||
</module>
|
||||
<module name="ClassTypeParameterName"/>
|
||||
<module name="CovariantEquals"/>
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
package org.gaul.s3proxy;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.net.URI;
|
||||
|
@ -358,12 +359,11 @@ public final class S3ProxyTest {
|
|||
.isEqualTo(HttpServletResponse.SC_OK);
|
||||
}
|
||||
|
||||
// TODO: jclouds only supports MPU via aws-s3, not generic s3
|
||||
@Ignore
|
||||
@Test
|
||||
public void testUnknownParameter() throws Exception {
|
||||
String blobName = "blob";
|
||||
ByteSource byteSource = ByteSource.wrap(new byte[1]);
|
||||
int minMultipartSize = 32 * 1024 * 1024 + 1;
|
||||
ByteSource byteSource = ByteSource.wrap(new byte[minMultipartSize]);
|
||||
Blob blob = s3BlobStore.blobBuilder(blobName)
|
||||
.payload(byteSource)
|
||||
.contentLength(byteSource.size())
|
||||
|
@ -371,6 +371,7 @@ public final class S3ProxyTest {
|
|||
PutOptions options = new PutOptions().multipart(true);
|
||||
try {
|
||||
s3BlobStore.putBlob(containerName, blob, options);
|
||||
fail("Expected HttpResponseException");
|
||||
} catch (RuntimeException re) {
|
||||
// TODO: why does jclouds wrap this in a
|
||||
// UncheckedExecutionException?
|
||||
|
|
Ładowanie…
Reference in New Issue