Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix UT.

  • Loading branch information...
commit 7e684f2e4198c531af2195cc7cbd5cbd3b4a7aa9 1 parent 1b97f31
@andrerod andrerod authored
View
9 lib/services/serviceBus/wrapservice.js
@@ -40,6 +40,15 @@ exports = module.exports = WrapService;
* @param {string} [accessKey] The service bus issuer password.
*/
function WrapService(acsHost, issuer, accessKey) {
+ if (!acsHost) {
+ var acsNamespace = process.env[ServiceClient.EnvironmentVariables.AZURE_WRAP_NAMESPACE];
+ if (!acsNamespace) {
+ acsNamespace = process.env[ServiceClient.EnvironmentVariables.AZURE_SERVICEBUS_NAMESPACE] + ServiceClient.DEFAULT_WRAP_NAMESPACE_SUFFIX;
+ }
+
+ acsHost = url.format({ protocol: 'https:', port: 443, hostname: acsNamespace + '.' + ServiceClient.CLOUD_ACCESS_CONTROL_HOST });
+ }
+
this.issuer = issuer;
if (!this.issuer) {
this.issuer = process.env[ServiceClient.EnvironmentVariables.AZURE_SERVICEBUS_ISSUER];
View
1  test/services/serviceBus/servicebusservice-tests.js
@@ -1616,7 +1616,6 @@ suite('servicebusservice-tests', function () {
assert.equal(serviceBusService.namespace, 'ablal-martvue');
assert.equal(serviceBusService.issuer, 'owner');
assert.equal(serviceBusService.accessKey, key);
- assert.equal(serviceBusService.acsNamespace, 'ablal-martvue-sb');
done();
});
View
35 test/testlist.txt
@@ -1,36 +1,3 @@
-cli/commands/generate-psm1-utils-test.js
-serviceruntime/roleenvironment-tests.js
-serviceruntime/runtimeversionmanager-tests.js
-serviceruntime/runtimeversionprotocolclient-tests.js
-services/blob/blobservice-tests.js
-services/blob/sharedaccesssignature-tests.js
-services/blob/sharedkey-tests.js
-services/blob/sharedkeylite-tests.js
-services/blob/filters-tests.js
-services/core/connectionstringparser-tests.js
-services/core/serviceclient-tests.js
-services/core/exponentialretrypolicyfilter-tests.js
-services/core/linearretrypolicyfilter-tests.js
-services/core/servicesettings-tests.js
-services/core/servicebussettings-tests.js
-services/core/servicemanagementsettings-tests.js
-services/core/storageservicesettings-tests.js
-services/queue/queueservice-tests.js
-services/table/batchserviceclient-tests.js
-services/table/sharedkeytable-tests.js
-services/table/sharedkeylitetable-tests.js
services/serviceBus/servicebusservice-tests.js
services/serviceBus/wrapservice-tests.js
-services/serviceBus/wraptokenmanager-tests.js
-services/table/tablequery-tests.js
-services/table/tableservice-batch-tests.js
-services/table/tableservice-tablequery-tests.js
-services/table/tableservice-tests.js
-util/atomhandler-tests.js
-util/iso8061date-tests.js
-util/util-tests.js
-util/validate-tests.js
-util/certificates/der.decoder-tests.js
-util/certificates/der.decoder.pfx.root-tests.js
-util/certificates/pkcs.filedecoder-tests.js
-azure-tests.js
+services/serviceBus/wraptokenmanager-tests.js
Please sign in to comment.
Something went wrong with that request. Please try again.