Updated Branches:
  refs/heads/1.6.x f899e3977 -> 12860851b

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/12860851
Tree: http://git-wip-us.apache.org/repos/asf/incubator-jclouds/tree/12860851
Diff: http://git-wip-us.apache.org/repos/asf/incubator-jclouds/diff/12860851

Branch: refs/heads/1.6.x
Commit: 12860851b19e5504b43008a1971d5ac5aee7f897
Parents: f899e39
Author: Andrew Gaul <[email protected]>
Authored: Mon Aug 26 21:42:43 2013 -0700
Committer: Andrew Gaul <[email protected]>
Committed: Tue Aug 27 23:03:14 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/12860851/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;
    }

Reply via email to