> + File fileToUpload = createFileExactly(PART_SIZE * 11,
> objectName);
> + addMultipartBlobToContainer(containerName, objectName,
> fileToUpload);
> +
> + // did we create enough parts?
> + long countAfter = blobStore.countBlobs(containerName);
> + assertNotEquals(countBefore, countAfter,
> + "No blob was created");
> + assertTrue(countAfter - countBefore > 1,
> + "A multipart blob wasn't actually created - " +
> + "there was only 1 extra blob but there should be
> one manifest blob and multiple chunk blobs");
> + assertEquals(countBefore + 12, countAfter,
> + "12 parts (11 objects + 1 manifest) were expected.");
> +
> + // download and check again
> + Blob read = blobStore.getBlob(containerName, objectName);
> + File outFile = new File("target", "file-read.txt");
Create a temporary file here instead?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/427/files#r14410625