Repository: jclouds
Updated Branches:
  refs/heads/master 80beb9b39 -> 35f4f2bbf


Use more unique names in containerDoesntExist

Previously this failed on AWS due to another container named
"forgetaboutit".


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

Branch: refs/heads/master
Commit: 35f4f2bbf1161ab2df779cff09b9bebe0eb4b18f
Parents: 80beb9b
Author: Andrew Gaul <[email protected]>
Authored: Sun Mar 27 13:48:04 2016 -0700
Committer: Andrew Gaul <[email protected]>
Committed: Sun Mar 27 13:48:42 2016 -0700

----------------------------------------------------------------------
 .../integration/internal/BaseContainerIntegrationTest.java    | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/35f4f2bb/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java
----------------------------------------------------------------------
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 ca9b8e6..68f7227 100644
--- 
a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java
+++ 
b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseContainerIntegrationTest.java
@@ -32,6 +32,7 @@ import java.io.File;
 import java.io.IOException;
 import java.util.HashSet;
 import java.util.Iterator;
+import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
@@ -61,8 +62,10 @@ public class BaseContainerIntegrationTest extends 
BaseBlobStoreIntegrationTest {
 
    @Test(groups = { "integration", "live" })
    public void containerDoesntExist() {
-      assert !view.getBlobStore().containerExists("forgetaboutit");
-      assert 
!view.getBlobStore().containerExists("cloudcachestorefunctionalintegrationtest-first");
+      Random random = new Random();
+      assert !view.getBlobStore().containerExists("forgetaboutit" + 
random.nextInt(Integer.MAX_VALUE));
+      assert 
!view.getBlobStore().containerExists("cloudcachestorefunctionalintegrationtest-first"
 +
+            random.nextInt(Integer.MAX_VALUE));
    }
 
    @Test(groups = { "integration", "live" })

Reply via email to