Skip to content

Commit

Permalink
Merge pull request #1 from christav/storage_client_test_fix
Browse files Browse the repository at this point in the history
Fixing client tests so they pull credentials from env vars
  • Loading branch information
Chris Tavares committed Sep 28, 2012
2 parents 89f971c + 815d89b commit 5585d93
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ public static void setup() throws URISyntaxException, StorageException, InvalidK
httpAcc = CloudStorageAccount.getDevelopmentStorageAccount();
}
else {
httpAcc = CloudStorageAccount.parse(CLOUD_ACCOUNT_HTTP);
String cloudAccount = CLOUD_ACCOUNT_HTTP;
cloudAccount = cloudAccount.replace("[ACCOUNT NAME]", System.getenv("blob.accountName"));
cloudAccount = cloudAccount.replace("[ACCOUNT KEY]", System.getenv("blob.accountKey"));

httpAcc = CloudStorageAccount.parse(cloudAccount);
}

bClient = httpAcc.createCloudBlobClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ public static void setup() throws URISyntaxException, StorageException, InvalidK
httpAcc = CloudStorageAccount.getDevelopmentStorageAccount();
}
else {
httpAcc = CloudStorageAccount.parse(CLOUD_ACCOUNT_HTTP);
String cloudAccount = CLOUD_ACCOUNT_HTTP;
cloudAccount = cloudAccount.replace("[ACCOUNT NAME]", System.getenv("queue.accountName"));
cloudAccount = cloudAccount.replace("[ACCOUNT KEY]", System.getenv("queue.accountKey"));

httpAcc = CloudStorageAccount.parse(cloudAccount);
}

qClient = httpAcc.createCloudQueueClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,11 @@ public static void setup() throws URISyntaxException, StorageException, InvalidK
httpAcc = CloudStorageAccount.getDevelopmentStorageAccount();
}
else {
httpAcc = CloudStorageAccount.parse(CLOUD_ACCOUNT_HTTP);
String cloudAccount = CLOUD_ACCOUNT_HTTP;
cloudAccount = cloudAccount.replace("[ACCOUNT NAME]", System.getenv("table.accountName"));
cloudAccount = cloudAccount.replace("[ACCOUNT KEY]", System.getenv("table.accountKey"));

httpAcc = CloudStorageAccount.parse(cloudAccount);
}

bClient = httpAcc.createCloudBlobClient();
Expand Down

0 comments on commit 5585d93

Please sign in to comment.