mirror of
https://github.com/apache/jclouds.git
synced 2025-02-10 20:16:01 +00:00
Use more unique names in containerDoesntExist
Previously this failed on AWS due to another container named "forgetaboutit".
This commit is contained in:
parent
80beb9b397
commit
35f4f2bbf1
@ -32,6 +32,7 @@ import java.io.File;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
import java.util.Random;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
@ -61,8 +62,10 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
|
|||||||
|
|
||||||
@Test(groups = { "integration", "live" })
|
@Test(groups = { "integration", "live" })
|
||||||
public void containerDoesntExist() {
|
public void containerDoesntExist() {
|
||||||
assert !view.getBlobStore().containerExists("forgetaboutit");
|
Random random = new Random();
|
||||||
assert !view.getBlobStore().containerExists("cloudcachestorefunctionalintegrationtest-first");
|
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" })
|
@Test(groups = { "integration", "live" })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user