Permalink
Browse files

Adding more UT.

  • Loading branch information...
1 parent da0a165 commit 04c35e1602513f4a6cbbb32a27aefff45792a194 Andre Rodrigues committed Oct 10, 2012
Showing with 22 additions and 0 deletions.
  1. +11 −0 test/services/blob/blobservice-tests.js
  2. +11 −0 test/services/queue/queueservice-tests.js
@@ -1272,6 +1272,17 @@ suite('blobservice-tests', function () {
});
});
});
+
+ test('storageConnectionStrings', function (done) {
+ var connectionString = 'DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=mykey';
+ var blobService = azure.createBlobService(connectionString);
+
+ assert.equal(blobService.storageAccount, 'myaccount');
+ assert.equal(blobService.storageAccessKey, 'mykey');
+ assert.equal(blobService.protocol, 'https://');
+
+ done();
+ });
});
function repeat(s, n) {
@@ -450,4 +450,15 @@ suite('queueservice-tests', function () {
done();
});
});
+
+ test('storageConnectionStrings', function (done) {
+ var connectionString = 'DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=mykey';
+ var queueService = azure.createQueueService(connectionString);
+
+ assert.equal(queueService.storageAccount, 'myaccount');
+ assert.equal(queueService.storageAccessKey, 'mykey');
+ assert.equal(queueService.protocol, 'https://');
+
+ done();
+ });
});

0 comments on commit 04c35e1

Please sign in to comment.