diff --git a/dataproc/package.json b/dataproc/package.json index b5a6b37359..c257082550 100644 --- a/dataproc/package.json +++ b/dataproc/package.json @@ -21,6 +21,6 @@ "devDependencies": { "chai": "^4.2.0", "mocha": "^7.0.0", - "uuid": "^3.3.3" + "uuid": "^7.0.2" } } diff --git a/dataproc/system-test/createCluster.test.js b/dataproc/system-test/createCluster.test.js index 67d3403f79..6d6aad852a 100644 --- a/dataproc/system-test/createCluster.test.js +++ b/dataproc/system-test/createCluster.test.js @@ -17,10 +17,10 @@ const {assert} = require('chai'); const {describe, it, after} = require('mocha'); const cp = require('child_process'); -const uuid = require('uuid'); +const {v4} = require('uuid'); const region = 'us-central1'; -const clusterName = `node-cc-test-${uuid()}`; +const clusterName = `node-cc-test-${v4()}`; const dataproc = require('@google-cloud/dataproc'); const clusterClient = new dataproc.v1.ClusterControllerClient({ diff --git a/dataproc/system-test/quickstart.test.js b/dataproc/system-test/quickstart.test.js index d769ce42f3..c6b7225c33 100644 --- a/dataproc/system-test/quickstart.test.js +++ b/dataproc/system-test/quickstart.test.js @@ -17,12 +17,12 @@ const {assert} = require('chai'); const {describe, it, before, after} = require('mocha'); const cp = require('child_process'); -const uuid = require('uuid'); +const {v4} = require('uuid'); const dataproc = require('@google-cloud/dataproc'); const {Storage} = require('@google-cloud/storage'); -const myUuid = uuid(); +const myUuid = v4(); const region = 'us-central1'; const clusterName = `node-qs-test-${myUuid}`; const bucketName = `node-dataproc-qs-test-${myUuid}`;