> + @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);
> + assertThat(blob.getPayload().openStream())
> + .hasContentEqualTo(byteSource.slice(0, 6).openStream());
done
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/765/files#r32163677