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

View File

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