Skip to content

Commit

Permalink
chore: update UUID to latest (#293)
Browse files Browse the repository at this point in the history
There are some slight breaking changes in the newest UUID.
  • Loading branch information
bcoe authored Mar 19, 2020
1 parent 689a78f commit 5dbf7ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion kms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"chai": "^4.2.0",
"mocha": "^7.0.0",
"uuid": "^3.3.3",
"uuid": "^7.0.2",
"yargs": "^15.0.0"
}
}
12 changes: 6 additions & 6 deletions kms/system-test/kms.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const {assert} = require('chai');
const {describe, it, before, after} = require('mocha');
const cp = require('child_process');
const {promisify} = require('util');
const uuidv4 = require(`uuid/v4`);
const {v4} = require(`uuid`);
const unlink = promisify(fs.unlink);

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

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

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

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

const dataToEncrypt = 'my data to encrypt';
const dataToSign = 'my data to sign';
Expand Down

0 comments on commit 5dbf7ff

Please sign in to comment.