You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2013/08/28 08:03:07 UTC

git commit: Allocate new container name using prefix

Updated Branches:
  refs/heads/master 15d9abead -> 4ca531aa9


Allocate new container name using prefix

Before we used the previous container name, which kept appending and
hit S3 limits during integration tests like:

Caused by: java.lang.IllegalArgumentException: Object 'gaul-blobstore27-4348532805015069992-1155797412711190448-1465016400636204031' doesn't match S3 bucket virtual host naming convention. Reason: Can't be null or empty. Length must be 3 to 63 symbols.. For more info, please refer to http://docs.amazonwebservices.com/AmazonS3/latest/index.html?BucketRestrictions.html


Project: http://git-wip-us.apache.org/repos/asf/incubator-jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-jclouds/commit/4ca531aa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-jclouds/tree/4ca531aa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-jclouds/diff/4ca531aa

Branch: refs/heads/master
Commit: 4ca531aa981476887b5814dbf172114449359ec1
Parents: 15d9abe
Author: Andrew Gaul <ga...@apache.org>
Authored: Mon Aug 26 21:42:43 2013 -0700
Committer: Andrew Gaul <ga...@apache.org>
Committed: Tue Aug 27 23:02:55 2013 -0700

----------------------------------------------------------------------
 .../integration/internal/BaseBlobStoreIntegrationTest.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/4ca531aa/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobStoreIntegrationTest.java
----------------------------------------------------------------------
diff --git a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobStoreIntegrationTest.java b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobStoreIntegrationTest.java
index 98d4d20..f358358 100644
--- a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobStoreIntegrationTest.java
+++ b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobStoreIntegrationTest.java
@@ -499,7 +499,7 @@ public class BaseBlobStoreIntegrationTest extends BaseViewLiveTest<BlobStoreCont
             deleteContainerOrWarnIfUnable(view, container);
          }
       });
-      String newScratchContainer = container + new SecureRandom().nextLong();
+      String newScratchContainer = CONTAINER_PREFIX + new SecureRandom().nextLong();
       System.err.printf("*** allocated new container %s...%n", container);
       return newScratchContainer;
    }