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:43:55 GMT
> +      } finally {
> +         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")

What are the two different dataproviders in this test for? We're trying to delete objects
that don't exist and are checking for names? Or..?

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