> @@ -375,4 +380,23 @@ public void testBlockOperations() throws Exception {
>        assertEquals(1, blocks.getBlocks().get(2).getContentLength());
>        getApi().deleteContainer(blockContainer);
>     }
> +
> +   @Test(timeOut = 5 * 60 * 1000, dependsOnMethods = { 
> "testCreateContainer", "testCreatePublicContainer" })
> +   public void testCopyBlob() throws Exception {
> +      ByteSource byteSource = TestUtils.randomByteSource().slice(0, 1024);
> +
> +      // create blob
> +      AzureBlob object = getApi().newBlob();
> +      object.getProperties().setName("from");
> +      object.setPayload(byteSource.read());
> +      getApi().putBlob(privateContainer, object);
> +
> +      // copy blob
> +      URI copySource = view.getSigner().signGetBlob(privateContainer, 
> "from").getEndpoint();
> +      getApi().copyBlob(copySource, privateContainer, "to", 
> Optional.<CopyBlobOptions>absent());

Normal test teardown handles this.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/514/files#r27364638

Reply via email to