Permalink
Browse files

Fix UT.

  • Loading branch information...
Andre Rodrigues
Andre Rodrigues committed Oct 12, 2012
1 parent 1b97f31 commit 7e684f2e4198c531af2195cc7cbd5cbd3b4a7aa9
Showing with 10 additions and 35 deletions.
  1. +9 −0 lib/services/serviceBus/wrapservice.js
  2. +0 −1 test/services/serviceBus/servicebusservice-tests.js
  3. +1 −34 test/testlist.txt
@@ -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];
@@ -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
@@ -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

0 comments on commit 7e684f2

Please sign in to comment.