mirror of https://github.com/apache/jclouds.git
Reduce Swift integration test input size
Previously testMultipartChunkedFilenames uploaded 55 MB and now it uploads 5 MB.
This commit is contained in:
parent
86de7923a1
commit
09cf57101d
|
@ -141,15 +141,15 @@ public class SwiftBlobIntegrationLiveTest extends BaseBlobIntegrationTest {
|
||||||
String objectName = "object.txt";
|
String objectName = "object.txt";
|
||||||
long countBefore = blobStore.countBlobs(containerName);
|
long countBefore = blobStore.countBlobs(containerName);
|
||||||
|
|
||||||
// we want 11 parts
|
// we want 2 parts
|
||||||
ByteSource inputSource = createByteSource(PART_SIZE * 11);
|
ByteSource inputSource = createByteSource(PART_SIZE + 1);
|
||||||
addMultipartBlobToContainer(containerName, objectName, inputSource);
|
addMultipartBlobToContainer(containerName, objectName, inputSource);
|
||||||
|
|
||||||
// did we create enough parts?
|
// did we create enough parts?
|
||||||
long countAfter = blobStore.countBlobs(containerName);
|
long countAfter = blobStore.countBlobs(containerName);
|
||||||
assertNotEquals(countAfter, countBefore, "No blob was created");
|
assertNotEquals(countAfter, countBefore, "No blob was created");
|
||||||
assertEquals(countAfter, countBefore + 12,
|
assertEquals(countAfter, countBefore + 3,
|
||||||
"12 parts (11 objects + 1 manifest) were expected.");
|
"3 parts (2 objects + 1 manifest) were expected.");
|
||||||
|
|
||||||
// download and check if correct
|
// download and check if correct
|
||||||
Blob read = blobStore.getBlob(containerName, objectName);
|
Blob read = blobStore.getBlob(containerName, objectName);
|
||||||
|
|
Loading…
Reference in New Issue