Supporting uppercase user names in Azure blob live tests

This commit is contained in:
Bhathiya90 2014-03-31 11:31:22 +05:30 committed by Andrew Phillips
parent b92892094b
commit c308bb9bcb
1 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ public class AzureBlobClientLiveTest extends BaseBlobStoreIntegrationTest {
public void testCreateContainer() throws Exception {
boolean created = false;
while (!created) {
privateContainer = prefix + new SecureRandom().nextInt();
privateContainer = CONTAINER_PREFIX + new SecureRandom().nextInt();
try {
created = getApi().createContainer(privateContainer, withMetadata(ImmutableMultimap.of("foo", "bar")));
} catch (UndeclaredThrowableException e) {
@ -111,7 +111,7 @@ public class AzureBlobClientLiveTest extends BaseBlobStoreIntegrationTest {
public void testCreatePublicContainer() throws Exception {
boolean created = false;
while (!created) {
publicContainer = prefix + new SecureRandom().nextInt();
publicContainer = CONTAINER_PREFIX + new SecureRandom().nextInt();
try {
created = getApi().createContainer(publicContainer, withPublicAccess(PublicAccess.BLOB));
} catch (UndeclaredThrowableException e) {
@ -353,7 +353,7 @@ public class AzureBlobClientLiveTest extends BaseBlobStoreIntegrationTest {
@Test(timeOut = 5 * 60 * 1000)
public void testBlockOperations() throws Exception {
String blockContainer = prefix + new SecureRandom().nextInt();
String blockContainer = CONTAINER_PREFIX + new SecureRandom().nextInt();
String blockBlob = "myblockblob-" + new SecureRandom().nextInt();
String A = "A";
String B = "B";