Permalink
Browse files

Unifying devstore constants.

  • Loading branch information...
1 parent a9c267a commit e71c32707789a8123dc345afd471ddea96231f38 Andre Rodrigues committed Oct 13, 2012
@@ -53,8 +53,8 @@ ServiceClient.EnvironmentVariables = {
/**
* Default credentials.
*/
-ServiceClient.DEVSTORE_STORAGE_ACCOUNT = 'devstoreaccount1';
-ServiceClient.DEVSTORE_STORAGE_ACCESS_KEY = 'Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==';
+ServiceClient.DEVSTORE_STORAGE_ACCOUNT = Constants.DEV_STORE_NAME;
+ServiceClient.DEVSTORE_STORAGE_ACCESS_KEY = Constants.DEV_STORE_KEY;
/**
* Development ServiceClient URLs.
@@ -94,8 +94,8 @@ StorageServiceSettings._getDevelopmentStorageAccount = function (proxyUri) {
var prefix = scheme + '//' + host;
return new StorageServiceSettings(
- ConnectionStringKeys.DEV_STORE_NAME,
- ConnectionStringKeys.DEV_STORE_KEY,
+ Constants.DEV_STORE_NAME,
+ Constants.DEV_STORE_KEY,
prefix + ':10000/devstoreaccount1/',
prefix + ':10001/devstoreaccount1/',
prefix + ':10002/devstoreaccount1/'
View
@@ -826,6 +826,22 @@ var Constants = {
DEV_STORE_URI: 'http://127.0.0.1',
/**
+ * The development store account name.
+ *
+ * @const
+ * @type {string}
+ */
+ DEV_STORE_NAME: 'devstoreaccount1',
+
+ /**
+ * The development store account key.
+ *
+ * @const
+ * @type {string}
+ */
+ DEV_STORE_KEY: 'Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==',
+
+ /**
* The service management URI.
*
* @const
@@ -2584,8 +2600,6 @@ var Constants = {
QUEUE_ENDPOINT_NAME: 'QueueEndpoint',
TABLE_ENDPOINT_NAME: 'TableEndpoint',
SHARED_ACCESS_SIGNATURE_NAME: 'SharedAccessSignature',
- DEV_STORE_NAME: 'devstoreaccount1',
- DEV_STORE_KEY: 'Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==',
BLOB_BASE_DNS_NAME: 'blob.core.windows.net',
QUEUE_BASE_DNS_NAME: 'queue.core.windows.net',
TABLE_BASE_DNS_NAME: 'table.core.windows.net',
@@ -26,8 +26,8 @@ suite('storageservicesettings-tests', function () {
test('testCreateFromConnectionStringWithUseDevStore', function () {
// Setup
var connectionString = 'UseDevelopmentStorage=true';
- var expectedName = ConnectionStringKeys.DEV_STORE_NAME;
- var expectedKey = ConnectionStringKeys.DEV_STORE_KEY;
+ var expectedName = Constants.DEV_STORE_NAME;
+ var expectedKey = Constants.DEV_STORE_KEY;
var expectedBlobEndpoint = Constants.DEV_STORE_URI + ':10000/devstoreaccount1/';
var expectedQueueEndpoint = Constants.DEV_STORE_URI + ':10001/devstoreaccount1/';
var expectedTableEndpoint = Constants.DEV_STORE_URI + ':10002/devstoreaccount1/';
@@ -47,8 +47,8 @@ suite('storageservicesettings-tests', function () {
// Setup
var myProxyUri = 'http://222.3.5.6';
var connectionString = 'DevelopmentStorageProxyUri=' + myProxyUri + ';UseDevelopmentStorage=true';
- var expectedName = ConnectionStringKeys.DEV_STORE_NAME;
- var expectedKey = ConnectionStringKeys.DEV_STORE_KEY;
+ var expectedName = Constants.DEV_STORE_NAME;
+ var expectedKey = Constants.DEV_STORE_KEY;
var expectedBlobEndpoint = myProxyUri + ':10000/devstoreaccount1/';
var expectedQueueEndpoint = myProxyUri + ':10001/devstoreaccount1/';
var expectedTableEndpoint = myProxyUri + ':10002/devstoreaccount1/';

0 comments on commit e71c327

Please sign in to comment.