diff --git a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java index 14ada88d59..130ad6d04d 100755 --- a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java +++ b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java @@ -53,11 +53,17 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest { } @Test(groups = { "integration", "live" }) - public void testPutTwiceIsOk() throws InterruptedException { + public void testPutTwiceIsOkAndDoesntOverwrite() throws InterruptedException { String containerName = getContainerName(); try { context.getBlobStore().createContainerInLocation("default", containerName); + + Blob blob = context.getBlobStore().newBlob("hello"); + blob.setPayload(TEST_STRING); + context.getBlobStore().putBlob(containerName, blob); + context.getBlobStore().createContainerInLocation("default", containerName); + assertEquals(context.getBlobStore().countBlobs(containerName), 1); } finally { returnContainer(containerName); } diff --git a/tools/vfs/pom.xml b/tools/vfs/pom.xml index 15e496bdde..4b8a312d6e 100644 --- a/tools/vfs/pom.xml +++ b/tools/vfs/pom.xml @@ -105,6 +105,18 @@ 1.2.14 + + + + apache.snapshots.https + Apache Snapshot Repository + https://repository.apache.org/content/repositories/snapshots + + false + + + + ${project.artifactId} diff --git a/tools/vfs/src/main/java/org/jclouds/vfs/provider/blobstore/BlobStoreFileNameParser.java b/tools/vfs/src/main/java/org/jclouds/vfs/provider/blobstore/BlobStoreFileNameParser.java index 1314a6d80d..81aca0ad87 100644 --- a/tools/vfs/src/main/java/org/jclouds/vfs/provider/blobstore/BlobStoreFileNameParser.java +++ b/tools/vfs/src/main/java/org/jclouds/vfs/provider/blobstore/BlobStoreFileNameParser.java @@ -73,7 +73,7 @@ public class BlobStoreFileNameParser extends URLFileNameParser { FileType fileType = UriParser.normalisePath(name); String path = name.toString(); - return new BlobStoreFileName(auth.getHostName(), creds.account, creds.key, path, fileType, + return new BlobStoreFileName(auth.hostName, creds.account, creds.key, path, fileType, container); }