Skip to content

Commit 089edee

Browse files
bcoeAce Nassri
authored and
Ace Nassri
committed
chore: update UUID to latest (#293)
There are some slight breaking changes in the newest UUID.
1 parent 080db06 commit 089edee

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

kms/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"devDependencies": {
2020
"chai": "^4.2.0",
2121
"mocha": "^7.0.0",
22-
"uuid": "^3.3.3",
22+
"uuid": "^7.0.2",
2323
"yargs": "^15.0.0"
2424
}
2525
}

kms/system-test/kms.test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ const {assert} = require('chai');
2020
const {describe, it, before, after} = require('mocha');
2121
const cp = require('child_process');
2222
const {promisify} = require('util');
23-
const uuidv4 = require(`uuid/v4`);
23+
const {v4} = require(`uuid`);
2424
const unlink = promisify(fs.unlink);
2525

2626
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2727

28-
const keyRingName = `test-ring-${uuidv4()}`;
29-
const keyNameOne = `test-key-${uuidv4()}`;
28+
const keyRingName = `test-ring-${v4()}`;
29+
const keyNameOne = `test-key-${v4()}`;
3030
const member = `allAuthenticatedUsers`;
3131
const role = `roles/viewer`;
3232
const projectId = process.env.GCLOUD_PROJECT;
@@ -305,10 +305,10 @@ describe('kms sample tests', () => {
305305
const client = new kms.KeyManagementServiceClient();
306306

307307
const locationId = `global`;
308-
const keyRingId = `test-asymmetric-ring-${uuidv4()}`;
309-
const keyAsymmetricDecryptName = `test-asymmetric-decrypt-${uuidv4()}`;
308+
const keyRingId = `test-asymmetric-ring-${v4()}`;
309+
const keyAsymmetricDecryptName = `test-asymmetric-decrypt-${v4()}`;
310310

311-
const keyAsymmetricSignName = `test-asymmetric-sign-${uuidv4()}`;
311+
const keyAsymmetricSignName = `test-asymmetric-sign-${v4()}`;
312312

313313
const dataToEncrypt = 'my data to encrypt';
314314
const dataToSign = 'my data to sign';

0 commit comments

Comments
 (0)