Skip to content

Commit f120dd4

Browse files
committed
test(NODE-3777): add more test kmip tls opts
1 parent 2fbacb3 commit f120dd4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/integration/client-side-encryption/client_side_encryption.prose.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const getKmsProviders = localKey => {
1212
if (localKey) {
1313
result.local = { key: localKey };
1414
}
15+
result.kmip = {
16+
endpoint: 'localhost:5698'
17+
};
1518

1619
return result;
1720
};

test/tools/spec-runner/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ function translateClientOptions(options) {
7575
kmsProviders.kmip = {
7676
endpoint: 'localhost:5698'
7777
};
78+
options.autoEncryption.tlsOptions = {
79+
kmip: {
80+
tlsCAFile: process.env.KMIP_TLS_CA_FILE,
81+
tlsCertificateKeyFile: process.env.KMIP_TLS_CERT_FILE
82+
}
83+
}
7884
}
7985

8086
options.autoEncryption.kmsProviders = kmsProviders;

0 commit comments

Comments
 (0)