Коммит
b783a3fb9e
|
@ -101,7 +101,7 @@ exports.createServiceBusService = function (namespace, accessKey, issuer, acsNam
|
||||||
* Other exports.
|
* Other exports.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
exports.ServiceClient = require('./services/serviceclient');
|
exports.ServiceClient = require('./services/core/serviceclient');
|
||||||
exports.TableQuery = require('./services/table/tablequery');
|
exports.TableQuery = require('./services/table/tablequery');
|
||||||
exports.BatchServiceClient = require('./services/table/batchserviceclient');
|
exports.BatchServiceClient = require('./services/table/batchserviceclient');
|
||||||
exports.Constants = require('./util/constants');
|
exports.Constants = require('./util/constants');
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
// Module dependencies.
|
// Module dependencies.
|
||||||
var azureutil = require('../util/util');
|
var azureutil = require('../util/util');
|
||||||
var ServiceClient = require('../services/serviceclient');
|
var ServiceClient = require('../services/core/serviceclient');
|
||||||
var Constants = require('../util/constants');
|
var Constants = require('../util/constants');
|
||||||
var HeaderConstants = Constants.HeaderConstants;
|
var HeaderConstants = Constants.HeaderConstants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
|
|
|
@ -27,8 +27,8 @@ var ISO8061Date = require('../../util/iso8061date');
|
||||||
|
|
||||||
var SharedKey = require('./sharedkey');
|
var SharedKey = require('./sharedkey');
|
||||||
var SharedAccessSignature = require('./sharedaccesssignature');
|
var SharedAccessSignature = require('./sharedaccesssignature');
|
||||||
var StorageServiceClient = require('../storageserviceclient');
|
var StorageServiceClient = require('../core/storageserviceclient');
|
||||||
var ServiceClient = require('../serviceclient');
|
var ServiceClient = require('../core/serviceclient');
|
||||||
var WebResource = require('../../http/webresource');
|
var WebResource = require('../../http/webresource');
|
||||||
var Constants = require('../../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
var HeaderConstants = Constants.HeaderConstants;
|
var HeaderConstants = Constants.HeaderConstants;
|
||||||
|
|
|
@ -19,7 +19,7 @@ var qs = require('qs');
|
||||||
|
|
||||||
var azureutil = require('../../util/util');
|
var azureutil = require('../../util/util');
|
||||||
|
|
||||||
var ServiceClient = require('../serviceclient');
|
var ServiceClient = require('../core/serviceclient');
|
||||||
var HmacSha256Sign = require('./hmacsha256sign');
|
var HmacSha256Sign = require('./hmacsha256sign');
|
||||||
var Constants = require('../../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
var BlobConstants = Constants.BlobConstants;
|
var BlobConstants = Constants.BlobConstants;
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
// Module dependencies.
|
// Module dependencies.
|
||||||
var util = require('util');
|
var util = require('util');
|
||||||
|
|
||||||
var azureutil = require('../util/util');
|
var azureutil = require('../../util/util');
|
||||||
|
|
||||||
var ServiceClient = require('./serviceclient');
|
var ServiceClient = require('./serviceclient');
|
||||||
var Wrap = require('./serviceBus/wrap');
|
var Wrap = require('../serviceBus/wrap');
|
||||||
var Constants = require('../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
var HeaderConstants = Constants.HeaderConstants;
|
var HeaderConstants = Constants.HeaderConstants;
|
||||||
var QueryStringConstants = Constants.QueryStringConstants;
|
var QueryStringConstants = Constants.QueryStringConstants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
|
@ -57,7 +57,7 @@ function ServiceBusServiceClient(host, namespace, accessKey, issuer, acsNamespac
|
||||||
|
|
||||||
this.issuer = issuer;
|
this.issuer = issuer;
|
||||||
if (!this.issuer) {
|
if (!this.issuer) {
|
||||||
this.issuer = process.env[ServiceClient.EnvironmentVariables.AZURE_SERVICEBUS_ISSUER]; ;
|
this.issuer = process.env[ServiceClient.EnvironmentVariables.AZURE_SERVICEBUS_ISSUER];
|
||||||
|
|
||||||
if (!this.issuer) {
|
if (!this.issuer) {
|
||||||
this.issuer = ServiceClient.DEFAULT_SERVICEBUS_ISSUER;
|
this.issuer = ServiceClient.DEFAULT_SERVICEBUS_ISSUER;
|
||||||
|
@ -66,7 +66,7 @@ function ServiceBusServiceClient(host, namespace, accessKey, issuer, acsNamespac
|
||||||
|
|
||||||
this.accessKey = accessKey;
|
this.accessKey = accessKey;
|
||||||
if (!this.accessKey) {
|
if (!this.accessKey) {
|
||||||
this.accessKey = process.env[ServiceClient.EnvironmentVariables.AZURE_SERVICEBUS_ACCESS_KEY]; ;
|
this.accessKey = process.env[ServiceClient.EnvironmentVariables.AZURE_SERVICEBUS_ACCESS_KEY];
|
||||||
}
|
}
|
||||||
|
|
||||||
ServiceBusServiceClient.super_.call(this, host, authenticationProvider);
|
ServiceBusServiceClient.super_.call(this, host, authenticationProvider);
|
|
@ -22,12 +22,12 @@ var qs = require('qs');
|
||||||
var crypto = require('crypto');
|
var crypto = require('crypto');
|
||||||
var xml2js = require('xml2js');
|
var xml2js = require('xml2js');
|
||||||
|
|
||||||
var azureutil = require('../util/util');
|
var azureutil = require('../../util/util');
|
||||||
|
|
||||||
var Constants = require('../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
var HeaderConstants = Constants.HeaderConstants;
|
var HeaderConstants = Constants.HeaderConstants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var Logger = require('../diagnostics/logger');
|
var Logger = require('../../diagnostics/logger');
|
||||||
|
|
||||||
// Expose 'ServiceClient'.
|
// Expose 'ServiceClient'.
|
||||||
exports = module.exports = ServiceClient;
|
exports = module.exports = ServiceClient;
|
|
@ -21,14 +21,14 @@ var qs = require('qs');
|
||||||
var crypto = require('crypto');
|
var crypto = require('crypto');
|
||||||
var xml2js = require('xml2js');
|
var xml2js = require('xml2js');
|
||||||
|
|
||||||
var azureutil = require('../util/util');
|
var azureutil = require('../../util/util');
|
||||||
|
|
||||||
var ServiceClient = require('./serviceclient');
|
var ServiceClient = require('./serviceclient');
|
||||||
var Constants = require('../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
var HeaderConstants = Constants.HeaderConstants;
|
var HeaderConstants = Constants.HeaderConstants;
|
||||||
var QueryStringConstants = Constants.QueryStringConstants;
|
var QueryStringConstants = Constants.QueryStringConstants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var Logger = require('../diagnostics/logger');
|
var Logger = require('../../diagnostics/logger');
|
||||||
|
|
||||||
// Expose 'StorageServiceClient'.
|
// Expose 'StorageServiceClient'.
|
||||||
exports = module.exports = StorageServiceClient;
|
exports = module.exports = StorageServiceClient;
|
|
@ -18,8 +18,8 @@ var util = require('util');
|
||||||
|
|
||||||
var azureutil = require('../../util/util');
|
var azureutil = require('../../util/util');
|
||||||
|
|
||||||
var StorageServiceClient = require('../storageserviceclient');
|
var StorageServiceClient = require('../core/storageserviceclient');
|
||||||
var ServiceClient = require('../serviceclient');
|
var ServiceClient = require('../core/serviceclient');
|
||||||
var SharedKey = require('../blob/sharedkey');
|
var SharedKey = require('../blob/sharedkey');
|
||||||
var WebResource = require('../../http/webresource');
|
var WebResource = require('../../http/webresource');
|
||||||
var Constants = require('../../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
|
|
|
@ -18,6 +18,7 @@ var queryString = require('querystring');
|
||||||
// Module dependencies.
|
// Module dependencies.
|
||||||
var Constants = require('../../../util/constants');
|
var Constants = require('../../../util/constants');
|
||||||
var HeaderConstants = Constants.HeaderConstants;
|
var HeaderConstants = Constants.HeaderConstants;
|
||||||
|
var ServiceBusConstants = Constants.ServiceBusConstants;
|
||||||
|
|
||||||
// Expose 'AcsTokenResult'.
|
// Expose 'AcsTokenResult'.
|
||||||
exports = module.exports = AcsTokenResult;
|
exports = module.exports = AcsTokenResult;
|
||||||
|
@ -29,8 +30,8 @@ AcsTokenResult.parse = function (acsTokenQueryString) {
|
||||||
var acsTokenResult = new AcsTokenResult();
|
var acsTokenResult = new AcsTokenResult();
|
||||||
|
|
||||||
var parsedQueryString = queryString.parse(acsTokenQueryString);
|
var parsedQueryString = queryString.parse(acsTokenQueryString);
|
||||||
acsTokenResult['wrap_access_token'] = parsedQueryString['wrap_access_token'];
|
acsTokenResult[ServiceBusConstants.WRAP_ACCESS_TOKEN] = parsedQueryString[ServiceBusConstants.WRAP_ACCESS_TOKEN];
|
||||||
acsTokenResult['wrap_access_token_expires_in'] = parsedQueryString['wrap_access_token_expires_in'];
|
acsTokenResult[ServiceBusConstants.WRAP_ACCESS_TOKEN_EXPIRES_IN] = parsedQueryString[ServiceBusConstants.WRAP_ACCESS_TOKEN_EXPIRES_IN];
|
||||||
|
|
||||||
return acsTokenResult;
|
return acsTokenResult;
|
||||||
};
|
};
|
|
@ -94,7 +94,7 @@ QueueMessageResult._propertyFromString = function (value) {
|
||||||
} else if (value === 'false') {
|
} else if (value === 'false') {
|
||||||
return false;
|
return false;
|
||||||
} else if (azureutil.stringIsInt(value)) {
|
} else if (azureutil.stringIsInt(value)) {
|
||||||
return parseInt(value);
|
return parseInt(value, 10);
|
||||||
} else {
|
} else {
|
||||||
return parseFloat(value);
|
return parseFloat(value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,8 @@ var util = require('util');
|
||||||
var azureutil = require('../../util/util');
|
var azureutil = require('../../util/util');
|
||||||
var RFC1123 = require('../../util/rfc1123date');
|
var RFC1123 = require('../../util/rfc1123date');
|
||||||
|
|
||||||
var ServiceClient = require('../serviceclient');
|
var ServiceClient = require('../core/serviceclient');
|
||||||
var ServiceBusServiceClient = require('../servicebusserviceclient');
|
var ServiceBusServiceClient = require('../core/servicebusserviceclient');
|
||||||
|
|
||||||
var WebResource = require('../../http/webresource');
|
var WebResource = require('../../http/webresource');
|
||||||
var Constants = require('../../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
|
@ -1253,8 +1253,8 @@ function setRequestHeaders(webResource, message) {
|
||||||
break;
|
break;
|
||||||
case 'customProperties':
|
case 'customProperties':
|
||||||
// Custom properties
|
// Custom properties
|
||||||
for (var customProperty in message['customProperties']) {
|
for (var customProperty in message.customProperties) {
|
||||||
var value = message['customProperties'][customProperty];
|
var value = message.customProperties[customProperty];
|
||||||
if (azureutil.objectIsString(value)) {
|
if (azureutil.objectIsString(value)) {
|
||||||
value = "\"" + value.toString() + "\"";
|
value = "\"" + value.toString() + "\"";
|
||||||
} else if (azureutil.stringIsDate(value)) {
|
} else if (azureutil.stringIsDate(value)) {
|
||||||
|
|
|
@ -19,8 +19,8 @@ var url = require('url');
|
||||||
|
|
||||||
var azureutil = require('../../util/util');
|
var azureutil = require('../../util/util');
|
||||||
|
|
||||||
var ServiceClient = require('../serviceclient');
|
var ServiceClient = require('../core/serviceclient');
|
||||||
var ServiceBusServiceClient = require('../servicebusserviceclient');
|
var ServiceBusServiceClient = require('../core/servicebusserviceclient');
|
||||||
var WrapTokenManager = require('./wraptokenmanager');
|
var WrapTokenManager = require('./wraptokenmanager');
|
||||||
|
|
||||||
var WebResource = require('../../http/webresource');
|
var WebResource = require('../../http/webresource');
|
||||||
|
|
|
@ -18,7 +18,7 @@ var util = require('util');
|
||||||
|
|
||||||
var azureutil = require('../../util/util');
|
var azureutil = require('../../util/util');
|
||||||
|
|
||||||
var ServiceClient = require('../serviceclient');
|
var ServiceClient = require('../core/serviceclient');
|
||||||
|
|
||||||
var WebResource = require('../../http/webresource');
|
var WebResource = require('../../http/webresource');
|
||||||
var Constants = require('../../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
|
|
|
@ -18,7 +18,7 @@ var util = require('util');
|
||||||
|
|
||||||
var azureutil = require('../../util/util');
|
var azureutil = require('../../util/util');
|
||||||
|
|
||||||
var ServiceClient = require('../serviceclient');
|
var ServiceClient = require('../core/serviceclient');
|
||||||
var WrapService = require('./wrapservice');
|
var WrapService = require('./wrapservice');
|
||||||
var WebResource = require('../../http/webresource');
|
var WebResource = require('../../http/webresource');
|
||||||
var Constants = require('../../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
|
@ -51,7 +51,7 @@ WrapTokenManager.prototype.getAccessToken = function(scopeUri, callback) {
|
||||||
var now = new Date();
|
var now = new Date();
|
||||||
|
|
||||||
var cachedToken = self.activeTokens[scopeUri];
|
var cachedToken = self.activeTokens[scopeUri];
|
||||||
if (cachedToken && now < cachedToken['wrap_access_token_expires_utc']) {
|
if (cachedToken && now < cachedToken[ServiceBusConstants.WRAP_ACCESS_TOKEN_EXPIRES_UTC]) {
|
||||||
callback(null, cachedToken);
|
callback(null, cachedToken);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,8 +18,8 @@ var util = require('util');
|
||||||
var crypto = require('crypto');
|
var crypto = require('crypto');
|
||||||
|
|
||||||
var azureutil = require('../../util/util');
|
var azureutil = require('../../util/util');
|
||||||
var ServiceClient = require('../serviceclient');
|
var ServiceClient = require('../core/serviceclient');
|
||||||
var StorageServiceClient = require('../storageserviceclient');
|
var StorageServiceClient = require('../core/storageserviceclient');
|
||||||
var WebResource = require('../../http/webresource');
|
var WebResource = require('../../http/webresource');
|
||||||
var Constants = require('../../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
|
|
|
@ -42,12 +42,12 @@ EntityResult.serialize = function (entity) {
|
||||||
|
|
||||||
properties[AtomHandler.NSDATA + ':' + name] = newValue;
|
properties[AtomHandler.NSDATA + ':' + name] = newValue;
|
||||||
} else if (entity[name][Constants.ATOM_METADATA_MARKER] &&
|
} else if (entity[name][Constants.ATOM_METADATA_MARKER] &&
|
||||||
entity[name][Constants.ATOM_METADATA_MARKER]['type']) {
|
entity[name][Constants.ATOM_METADATA_MARKER].type) {
|
||||||
|
|
||||||
properties[AtomHandler.NSDATA + ':' + name] = entity[name];
|
properties[AtomHandler.NSDATA + ':' + name] = entity[name];
|
||||||
properties[AtomHandler.NSDATA + ':' + name][Constants.ATOM_METADATA_MARKER][AtomHandler.NSMETA + ':type'] = properties[AtomHandler.NSDATA + ':' + name][Constants.ATOM_METADATA_MARKER]['type'];
|
properties[AtomHandler.NSDATA + ':' + name][Constants.ATOM_METADATA_MARKER][AtomHandler.NSMETA + ':type'] = properties[AtomHandler.NSDATA + ':' + name][Constants.ATOM_METADATA_MARKER].type;
|
||||||
|
|
||||||
delete properties[AtomHandler.NSDATA + ':' + name][Constants.ATOM_METADATA_MARKER]['type'];
|
delete properties[AtomHandler.NSDATA + ':' + name][Constants.ATOM_METADATA_MARKER].type;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
properties[AtomHandler.NSDATA + ':' + name] = entity[name];
|
properties[AtomHandler.NSDATA + ':' + name] = entity[name];
|
||||||
|
@ -61,13 +61,13 @@ EntityResult.serialize = function (entity) {
|
||||||
'author': {
|
'author': {
|
||||||
name: ''
|
name: ''
|
||||||
},
|
},
|
||||||
'id': entity['id'] ? entity['id'] : '',
|
'id': entity.id ? entity.id : '',
|
||||||
'content': {
|
'content': {
|
||||||
'@': { type: 'application/xml' }
|
'@': { type: 'application/xml' }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
atomEntity['content'][AtomHandler.NSMETA + ':properties'] = properties;
|
atomEntity.content[AtomHandler.NSMETA + ':properties'] = properties;
|
||||||
|
|
||||||
var atomHandler = new AtomHandler();
|
var atomHandler = new AtomHandler();
|
||||||
var xml = atomHandler.serialize(atomEntity);
|
var xml = atomHandler.serialize(atomEntity);
|
||||||
|
|
|
@ -23,7 +23,7 @@ var BatchServiceClient = require("./batchserviceclient");
|
||||||
var SharedKeyTable = require('./sharedkeytable');
|
var SharedKeyTable = require('./sharedkeytable');
|
||||||
var TableQuery = require('./tablequery');
|
var TableQuery = require('./tablequery');
|
||||||
var AtomHandler = require('../../util/atomhandler');
|
var AtomHandler = require('../../util/atomhandler');
|
||||||
var ServiceClient = require('../serviceclient');
|
var ServiceClient = require('../core/serviceclient');
|
||||||
var WebResource = require('../../http/webresource');
|
var WebResource = require('../../http/webresource');
|
||||||
var Constants = require('../../util/constants');
|
var Constants = require('../../util/constants');
|
||||||
var QueryStringConstants = Constants.QueryStringConstants;
|
var QueryStringConstants = Constants.QueryStringConstants;
|
||||||
|
|
|
@ -297,7 +297,7 @@ AtomHandler.prototype._isDate = function(value) {
|
||||||
*/
|
*/
|
||||||
function formatToString(value) {
|
function formatToString(value) {
|
||||||
return value.toString();
|
return value.toString();
|
||||||
};
|
}
|
||||||
|
|
||||||
// Property type formatters are serializers that convert typed values into strings.
|
// Property type formatters are serializers that convert typed values into strings.
|
||||||
var propertyTypeFormatters = {
|
var propertyTypeFormatters = {
|
||||||
|
@ -329,7 +329,7 @@ AtomHandler.prototype._propertyFromString = function (value) {
|
||||||
return false;
|
return false;
|
||||||
} else if (azureutil.stringIsNumber(value)) {
|
} else if (azureutil.stringIsNumber(value)) {
|
||||||
if (azureutil.stringIsInt(value)) {
|
if (azureutil.stringIsInt(value)) {
|
||||||
return parseInt(value);
|
return parseInt(value, 10);
|
||||||
} else {
|
} else {
|
||||||
return parseFloat(value);
|
return parseFloat(value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ exports.stringIsInt = function (value) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var intValue = parseInt(value);
|
var intValue = parseInt(value, 10);
|
||||||
return intValue.toString().length === value.length &&
|
return intValue.toString().length === value.length &&
|
||||||
intValue === parseFloat(value);
|
intValue === parseFloat(value);
|
||||||
};
|
};
|
||||||
|
@ -139,7 +139,7 @@ exports.stringIsFloat = function(value) {
|
||||||
|
|
||||||
var floatValue = parseFloat(value);
|
var floatValue = parseFloat(value);
|
||||||
return floatValue.toString().length === value.length &&
|
return floatValue.toString().length === value.length &&
|
||||||
parseInt(value) !== floatValue;
|
parseInt(value, 10) !== floatValue;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
"underscore.string": ">= 2.0.0"
|
"underscore.string": ">= 2.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"mocha": "*"
|
"mocha": "*",
|
||||||
|
"jshint": "*"
|
||||||
},
|
},
|
||||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -17,7 +17,7 @@ var assert = require('assert');
|
||||||
|
|
||||||
var azure = require('../lib/azure');
|
var azure = require('../lib/azure');
|
||||||
|
|
||||||
var ServiceBusServiceClient = require('../lib/services/servicebusserviceclient');
|
var ServiceBusServiceClient = require('../lib/services/core/servicebusserviceclient');
|
||||||
var ServiceClient = azure.ServiceClient;
|
var ServiceClient = azure.ServiceClient;
|
||||||
|
|
||||||
var environmentAzureStorageAccount = 'myaccount';
|
var environmentAzureStorageAccount = 'myaccount';
|
||||||
|
|
|
@ -20,7 +20,7 @@ var azure = require("../../lib/azure");
|
||||||
var testutil = require('../util/util');
|
var testutil = require('../util/util');
|
||||||
var tabletestutil = require('../util/table-test-utils');
|
var tabletestutil = require('../util/table-test-utils');
|
||||||
|
|
||||||
var ServiceClient = require('../../lib/services/serviceclient');
|
var ServiceClient = require('../../lib/services/core/serviceclient');
|
||||||
var ExponentialRetryPolicyFilter = require('../../lib/common/exponentialretrypolicyfilter');
|
var ExponentialRetryPolicyFilter = require('../../lib/common/exponentialretrypolicyfilter');
|
||||||
var Constants = require('../../lib/util/constants');
|
var Constants = require('../../lib/util/constants');
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ var azure = require("../../lib/azure");
|
||||||
var testutil = require('../util/util');
|
var testutil = require('../util/util');
|
||||||
var tabletestutil = require('../util/table-test-utils');
|
var tabletestutil = require('../util/table-test-utils');
|
||||||
|
|
||||||
var ServiceClient = require('../../lib/services/serviceclient');
|
var ServiceClient = require('../../lib/services/core/serviceclient');
|
||||||
var LinearRetryPolicyFilter = require('../../lib/common/linearretrypolicyfilter');
|
var LinearRetryPolicyFilter = require('../../lib/common/linearretrypolicyfilter');
|
||||||
var Constants = require('../../lib/util/constants');
|
var Constants = require('../../lib/util/constants');
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ var http = require('http');
|
||||||
|
|
||||||
var mockServer = require('../mockserver/mockserver');
|
var mockServer = require('../mockserver/mockserver');
|
||||||
|
|
||||||
var ServiceClient = require("../../lib/services/serviceclient");
|
var ServiceClient = require("../../lib/services/core/serviceclient");
|
||||||
|
|
||||||
var recordingsPath = '/session';
|
var recordingsPath = '/session';
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,10 @@ var azureutil = require('../../../lib/util/util');
|
||||||
var azure = require('../../../lib/azure');
|
var azure = require('../../../lib/azure');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
|
|
||||||
var SharedAccessSignature = require('../../../lib/services/blob/sharedaccesssignature');
|
var SharedAccessSignature = azure.SharedAccessSignature;
|
||||||
var BlobService = require("../../../lib/services/blob/blobservice");
|
var BlobService = azure.BlobService;
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var BlobConstants = Constants.BlobConstants;
|
var BlobConstants = Constants.BlobConstants;
|
||||||
|
|
||||||
|
|
|
@ -25,10 +25,10 @@ var azure = require('../../../lib/azure');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
var blobtestutil = require('../../util/blob-test-utils');
|
var blobtestutil = require('../../util/blob-test-utils');
|
||||||
|
|
||||||
var SharedAccessSignature = require('../../../lib/services/blob/sharedaccesssignature');
|
var SharedAccessSignature = azure.SharedAccessSignature;
|
||||||
var BlobService = require("../../../lib/services/blob/blobservice");
|
var BlobService = azure.BlobService;
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var BlobConstants = Constants.BlobConstants;
|
var BlobConstants = Constants.BlobConstants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var WebResource = require('../../../lib/http/webresource');
|
var WebResource = require('../../../lib/http/webresource');
|
||||||
|
|
|
@ -17,10 +17,12 @@ var assert = require('assert');
|
||||||
|
|
||||||
var qs = require('qs');
|
var qs = require('qs');
|
||||||
|
|
||||||
var ServiceClient = require('../../../lib/services/serviceclient');
|
var azure = require('../../../lib/azure');
|
||||||
var SharedAccessSignature = require('../../../lib/services/blob/sharedaccesssignature');
|
|
||||||
var WebResource = require('../../../lib/http/webresource');
|
var WebResource = require('../../../lib/http/webresource');
|
||||||
var Constants = require('../../../lib/util/constants');
|
var SharedAccessSignature = azure.SharedAccessSignature;
|
||||||
|
var Constants = azure.Constants;
|
||||||
|
var ServiceClient = azure.ServiceClient;
|
||||||
var BlobConstants = Constants.BlobConstants;
|
var BlobConstants = Constants.BlobConstants;
|
||||||
var HeaderConstants = Constants.HeaderConstants;
|
var HeaderConstants = Constants.HeaderConstants;
|
||||||
var QueryStringConstants = Constants.QueryStringConstants;
|
var QueryStringConstants = Constants.QueryStringConstants;
|
||||||
|
|
|
@ -15,10 +15,12 @@
|
||||||
|
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
|
|
||||||
var SharedKey = require('../../../lib/services/blob/sharedkey');
|
var azure = require('../../../lib/azure');
|
||||||
var ServiceClient = require('../../../lib/services/serviceclient');
|
|
||||||
var WebResource = require('../../../lib/http/webresource');
|
var WebResource = require('../../../lib/http/webresource');
|
||||||
var Constants = require('../../../lib/util/constants');
|
var SharedKey = azure.SharedKey;
|
||||||
|
var ServiceClient = azure.ServiceClient;
|
||||||
|
var Constants = azure.Constants;
|
||||||
var QueryStringConstants = Constants.QueryStringConstants;
|
var QueryStringConstants = Constants.QueryStringConstants;
|
||||||
var HeaderConstants = Constants.HeaderConstants;
|
var HeaderConstants = Constants.HeaderConstants;
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,11 @@ var azure = require('../../../lib/azure');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
var blobtestutil = require('../../util/blob-test-utils');
|
var blobtestutil = require('../../util/blob-test-utils');
|
||||||
|
|
||||||
var SharedAccessSignature = require('../../../lib/services/blob/sharedaccesssignature');
|
var SharedAccessSignature = azure.SharedAccessSignature;
|
||||||
var BlobService = require("../../../lib/services/blob/blobservice");
|
var BlobService = azure.BlobService;
|
||||||
var SharedKeyLite = require("../../../lib/services/blob/sharedkeylite");
|
var SharedKeyLite = azure.SharedKeyLite;
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var BlobConstants = Constants.BlobConstants;
|
var BlobConstants = Constants.BlobConstants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var WebResource = require('../../../lib/http/webresource');
|
var WebResource = require('../../../lib/http/webresource');
|
||||||
|
|
|
@ -18,8 +18,8 @@ var assert = require('assert');
|
||||||
var azure = require('../../../lib/azure');
|
var azure = require('../../../lib/azure');
|
||||||
var azureutil = require('../../../lib/util/util');
|
var azureutil = require('../../../lib/util/util');
|
||||||
|
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ var azureutil = require('../../../lib/util/util');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
var queuetestutil = require('../../util/queue-test-utils');
|
var queuetestutil = require('../../util/queue-test-utils');
|
||||||
|
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
|
|
||||||
var queueService;
|
var queueService;
|
||||||
|
|
|
@ -23,8 +23,8 @@ var ISO8061Date = require('../../../lib/util/iso8061date');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
var servicebustestutil = require('../../util/servicebus-test-utils');
|
var servicebustestutil = require('../../util/servicebus-test-utils');
|
||||||
|
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
||||||
var ServiceBusConstants = Constants.ServiceBusConstants;
|
var ServiceBusConstants = Constants.ServiceBusConstants;
|
||||||
|
|
|
@ -23,8 +23,8 @@ var ISO8061Date = require('../../../lib/util/iso8061date');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
var wrapservicetestutil = require('../../util/wrapservice-test-utils');
|
var wrapservicetestutil = require('../../util/wrapservice-test-utils');
|
||||||
|
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@ var wrapservicetestutil = require('../../util/wrapservice-test-utils');
|
||||||
var WrapService = require('../../../lib/services/serviceBus/wrapservice');
|
var WrapService = require('../../../lib/services/serviceBus/wrapservice');
|
||||||
var WrapTokenManager = require('../../../lib/services/serviceBus/wraptokenmanager');
|
var WrapTokenManager = require('../../../lib/services/serviceBus/wraptokenmanager');
|
||||||
|
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
||||||
|
|
||||||
|
|
|
@ -20,9 +20,9 @@ var azureutil = require('../../../lib/util/util');
|
||||||
|
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
|
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var TableQuery = require('../../../lib/services/table/tablequery');
|
var TableQuery = azure.TableQuery;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var QueryEntitiesResultContinuation = require('../../../lib/services/table/models/queryentitiesresultcontinuation');
|
var QueryEntitiesResultContinuation = require('../../../lib/services/table/models/queryentitiesresultcontinuation');
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
||||||
|
|
|
@ -19,9 +19,9 @@ var azure = require('../../../lib/azure');
|
||||||
var azureutil = require('../../../lib/util/util');
|
var azureutil = require('../../../lib/util/util');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
|
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var TableQuery = require('../../../lib/services/table/tablequery');
|
var TableQuery = azure.TableQuery;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,12 @@
|
||||||
|
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
|
|
||||||
|
var azure = require('../../../lib/azure');
|
||||||
|
|
||||||
var SharedKeyLiteTable = require('../../../lib/services/table/sharedkeylitetable');
|
var SharedKeyLiteTable = require('../../../lib/services/table/sharedkeylitetable');
|
||||||
var ServiceClient = require('../../../lib/services/serviceclient');
|
|
||||||
var WebResource = require('../../../lib/http/webresource');
|
var WebResource = require('../../../lib/http/webresource');
|
||||||
var Constants = require('../../../lib/util/constants');
|
var ServiceClient = azure.ServiceClient;
|
||||||
|
var Constants = azure.Constants;
|
||||||
var HeaderConstants = Constants.HeaderConstants;
|
var HeaderConstants = Constants.HeaderConstants;
|
||||||
var QueryStringConstants = Constants.QueryStringConstants;
|
var QueryStringConstants = Constants.QueryStringConstants;
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,10 @@ var ISO8061Date = require('../../../lib/util/iso8061date');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
var tabletestutil = require('../../util/table-test-utils');
|
var tabletestutil = require('../../util/table-test-utils');
|
||||||
|
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var TableQuery = require('../../../lib/services/table/tablequery');
|
var Constants = azure.Constants;
|
||||||
|
var TableQuery = azure.TableQuery;
|
||||||
var SharedKeyLiteTable = require('../../../lib/services/table/sharedkeylitetable');
|
var SharedKeyLiteTable = require('../../../lib/services/table/sharedkeylitetable');
|
||||||
var Constants = require('../../../lib/util/constants');
|
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,9 @@ var azureutil = require('../../../lib/util/util');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
var tabletestutil = require('../../util/table-test-utils');
|
var tabletestutil = require('../../util/table-test-utils');
|
||||||
|
|
||||||
var ServiceClient = require('../../../lib/services/serviceclient');
|
var ServiceClient = azure.ServiceClient;
|
||||||
var TableQuery = require('../../../lib/services/table/tablequery');
|
var TableQuery = azure.TableQuery;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
|
|
||||||
var tableService;
|
var tableService;
|
||||||
|
|
|
@ -21,9 +21,9 @@ var azureutil = require('../../../lib/util/util');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
var tabletestutil = require('../../util/table-test-utils');
|
var tabletestutil = require('../../util/table-test-utils');
|
||||||
|
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var TableQuery = require('../../../lib/services/table/tablequery');
|
var TableQuery = azure.TableQuery;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@ var ISO8061Date = require('../../../lib/util/iso8061date');
|
||||||
var testutil = require('../../util/util');
|
var testutil = require('../../util/util');
|
||||||
var tabletestutil = require('../../util/table-test-utils');
|
var tabletestutil = require('../../util/table-test-utils');
|
||||||
|
|
||||||
var ServiceClient = require("../../../lib/services/serviceclient");
|
var ServiceClient = azure.ServiceClient;
|
||||||
var TableQuery = require('../../../lib/services/table/tablequery');
|
var TableQuery = azure.TableQuery;
|
||||||
var Constants = require('../../../lib/util/constants');
|
var Constants = azure.Constants;
|
||||||
var HttpConstants = Constants.HttpConstants;
|
var HttpConstants = Constants.HttpConstants;
|
||||||
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
var StorageErrorCodeStrings = Constants.StorageErrorCodeStrings;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче