> @@ -427,6 +427,25 @@ public void testGetTwoRanges() throws
> InterruptedException, IOException {
> }
> }
>
> + @Test(groups = { "integration", "live" })
> + public void testGetRangeMultipart() throws InterruptedException,
> IOException {
> + String container = getContainerName();
> + try {
> + String name = "apples";
> + long length = getMinimumMultipartBlobSize();
> + ByteSource byteSource = TestUtils.randomByteSource().slice(0,
> length);
> + Blob blob = view.getBlobStore().blobBuilder(name)
> + .payload(byteSource)
> + .contentLength(length)
> + .build();
> + view.getBlobStore().putBlob(container, blob, new
> PutOptions().multipart(true));
> + blob = view.getBlobStore().getBlob(container, name, range(0, 5));
> + validateMetadata(blob.getMetadata(), container, name);
Compare the `blob` payload against the partial `byteSource`?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/765/files#r32080195