replace node-uuid with uuid
This commit is contained in:
Родитель
f52657bb7a
Коммит
3cb2cf3aec
|
@ -16,7 +16,7 @@
|
|||
|
||||
// Module dependencies.
|
||||
var events = require('events');
|
||||
var uuid = require('node-uuid');
|
||||
var uuid = require('uuid');
|
||||
|
||||
var azureCommon = require('azure-common');
|
||||
var azureutil = azureCommon.util;
|
||||
|
|
|
@ -18,7 +18,7 @@ var fs = require('fs');
|
|||
var xml2js = require('azure-common').xml2js;
|
||||
var _ = require('underscore');
|
||||
var should = require('should');
|
||||
var uuid = require('node-uuid');
|
||||
var uuid = require('uuid');
|
||||
var os = require('os');
|
||||
var util = require('util');
|
||||
var MockedTestUtils = require('./mocked-test-utils');
|
||||
|
|
|
@ -21,7 +21,7 @@ var path = require('path');
|
|||
var sinon = require('sinon');
|
||||
var _ = require('underscore');
|
||||
var util = require('util');
|
||||
var uuid = require('node-uuid');
|
||||
var uuid = require('uuid');
|
||||
var msRestAzure = require('ms-rest-azure');
|
||||
var FileTokenCache = require('../../lib/util/fileTokenCache');
|
||||
var MockTokenCache = require('./mock-token-cache');
|
||||
|
|
|
@ -1174,7 +1174,7 @@ suite('roleenvironment-tests', function () {
|
|||
changes.cancel();
|
||||
});
|
||||
|
||||
sandbox.stub(azure.RoleEnvironment, 'requestRecycle', function () {
|
||||
sandbox.stub(azure.RoleEnvironment, 'requestRecycle').callsFake(function () {
|
||||
clearInterval(serverGoalStateInterval);
|
||||
|
||||
serverVersions.on('close', function () {
|
||||
|
|
|
@ -20,7 +20,7 @@ var should = require('should');
|
|||
var _ = require('underscore');
|
||||
var HDInsightTestUtils = require('../../framework/hdinsight-test-utils');
|
||||
var azureUtil = require('azure-common').util;
|
||||
var uuid = require('node-uuid');
|
||||
var uuid = require('uuid');
|
||||
var Validate = require('azure-common').validate;
|
||||
|
||||
// Test includes
|
||||
|
|
|
@ -19,7 +19,7 @@ var util = require('util');
|
|||
var fs = require('fs');
|
||||
var stream = require('stream');
|
||||
var moment = require('moment');
|
||||
var uuid = require('node-uuid');
|
||||
var uuid = require('uuid');
|
||||
var msRest = require('ms-rest');
|
||||
var msRestAzure = require('ms-rest-azure');
|
||||
var adal = require('adal-node');
|
||||
|
|
|
@ -125,7 +125,7 @@ describe('Notification hubs', function () {
|
|||
}
|
||||
};
|
||||
|
||||
sandbox.stub(service, '_executeRequest', function (webResource, payload, resultHandler, validators, callback) {
|
||||
sandbox.stub(service, '_executeRequest').callsFake(function (webResource, payload, resultHandler, validators, callback) {
|
||||
payload.should.match(/\<WnsCredential\>\<Properties\>\<Property\>\<Name\>PackageSid\<\/Name\>\<Value\>secret1\<\/Value\>\<\/Property\>\<Property\>\<Name\>SecretKey\<\/Name\>\<Value\>secret2\<\/Value\>\<\/Property\>\<\/Properties\>\<\/WnsCredential\>\<ApnsCredential\>\<Properties\>\<Property\>\<Name\>ApnsCertificate\<\/Name\>\<Value\>secret1\<\/Value\>\<\/Property\>\<Property\>\<Name\>CertificateKey\<\/Name\>\<Value\>secret2\<\/Value\>\<\/Property\>\<\/Properties\>\<\/ApnsCredential\>/);
|
||||
callback(undefined, { NotificationHubName: hubName });
|
||||
});
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
var should = require('should');
|
||||
var mocha = require('mocha');
|
||||
var uuid = require('node-uuid');
|
||||
var uuid = require('uuid');
|
||||
|
||||
var testutil = require('../../util/util');
|
||||
var MockedTestUtils = require('../../framework/mocked-test-utils');
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
var should = require('should');
|
||||
var mocha = require('mocha');
|
||||
var uuid = require('node-uuid');
|
||||
var uuid = require('uuid');
|
||||
|
||||
var testutil = require('../../util/util');
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче