jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-google] JCLOUDS-458:Added Blobstore Abstraction (#48)
Date Sat, 20 Sep 2014 03:44:15 GMT
> +         returnContainer(containerName);
> +      }
> +   }
> +
> +   protected void addMultipartBlobToContainer(String containerName, String key) throws
IOException {
> +      ByteSource sourceToUpload = TestUtils.randomByteSource().slice(0, (long) (PART_SIZE
* 1.1));
> +
> +      BlobStore blobStore = view.getBlobStore();
> +      blobStore.createContainerInLocation(null, containerName);
> +      Blob blob = blobStore.blobBuilder(key).payload(sourceToUpload).contentLength(sourceToUpload.size())
> +               .contentType(MediaType.TEXT_PLAIN).build();
> +      blobStore.putBlob(containerName, blob, PutOptions.Builder.multipart());
> +   }
> +
> +   @DataProvider(name = "delete")
> +   public Object[][] createData() {

[minor] Rename to `createDeleteData()`?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/48/files#r17817720
Mime
View raw message