Skip to content

Commit f2fd75b

Browse files
fix lint
1 parent 75f17ee commit f2fd75b

File tree

2 files changed

+29
-26
lines changed

2 files changed

+29
-26
lines changed

test/csfle-kms-providers.js

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
'use strict';
22

33
const csfleKMSProviders = {
4-
"aws": {
5-
"accessKeyId": process.env.FLE_AWS_KEY,
6-
"secretAccessKey": process.env.FLE_AWS_SECRET
7-
},
8-
"azure": {
9-
"tenantId": process.env.FLE_AZURE_TENANTID,
10-
"clientId": process.env.FLE_AZURE_CLIENTID,
11-
"clientSecret": process.env.FLE_AZURE_CLIENTSECRET
12-
},
13-
"gcp": {
14-
"email": process.env.FLE_GCP_EMAIL,
15-
"privateKey": process.env.FLE_GCP_PRIVATEKEY
16-
},
17-
"local": {
18-
"key": "Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk"
19-
},
20-
"kmip": {
21-
"endpoint": "localhost:5698"
22-
}
23-
}
4+
aws: {
5+
accessKeyId: process.env.FLE_AWS_KEY,
6+
secretAccessKey: process.env.FLE_AWS_SECRET
7+
},
8+
azure: {
9+
tenantId: process.env.FLE_AZURE_TENANTID,
10+
clientId: process.env.FLE_AZURE_CLIENTID,
11+
clientSecret: process.env.FLE_AZURE_CLIENTSECRET
12+
},
13+
gcp: {
14+
email: process.env.FLE_GCP_EMAIL,
15+
privateKey: process.env.FLE_GCP_PRIVATEKEY
16+
},
17+
local: {
18+
key: 'Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk'
19+
},
20+
kmip: {
21+
endpoint: 'localhost:5698'
22+
}
23+
};
2424

2525
function getCSFLEKMSProviders() {
2626
return JSON.parse(JSON.stringify(csfleKMSProviders));
@@ -36,10 +36,8 @@ const keys = [
3636
'FLE_GCP_PRIVATEKEY'
3737
];
3838

39-
const isInEnvironment = key => (typeof process.env[key] === 'string' && process.env[key].length > 0)
40-
const missingKeys = keys
41-
.filter(key => !isInEnvironment(key))
42-
.join(',');
39+
const isInEnvironment = key => typeof process.env[key] === 'string' && process.env[key].length > 0;
40+
const missingKeys = keys.filter(key => !isInEnvironment(key)).join(',');
4341

4442
module.exports = {
4543
getCSFLEKMSProviders,

test/integration/client-side-encryption/client_side_encryption.prose.21.automatic_data_encryption_keys.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ import { expect } from 'chai';
44
import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption';
55
/* eslint-disable @typescript-eslint/no-restricted-imports */
66
import { MongoCryptCreateEncryptedCollectionError } from '../../../src/client-side-encryption/errors';
7-
import { getCSFLEKMSProviders, kmsCredentialsPresent, missingKeys } from '../../csfle-kms-providers';
7+
import {
8+
getCSFLEKMSProviders,
9+
kmsCredentialsPresent,
10+
missingKeys
11+
} from '../../csfle-kms-providers';
812
import { Collection, type Db, MongoServerError } from '../../mongodb';
913

1014
const metadata: MongoDBMetadataUI = {
@@ -36,7 +40,8 @@ describe('21. Automatic Data Encryption Keys', () => {
3640

3741
if (!kmsCredentialsPresent) {
3842
if (this.currentTest) {
39-
this.currentTest.skipReason = 'This test requires FLE environment variables. Missing keys: ' + missingKeys;
43+
this.currentTest.skipReason =
44+
'This test requires FLE environment variables. Missing keys: ' + missingKeys;
4045
}
4146
return this.currentTest?.skip();
4247
}

0 commit comments

Comments
 (0)