Skip to content

Commit

Permalink
test(NODE-3777): add more test kmip tls opts
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Jan 18, 2022
1 parent 740cdc7 commit 77a450f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const getKmsProviders = localKey => {
if (localKey) {
result.local = { key: localKey };
}
result.kmip = {
endpoint: 'localhost:5698'
};

return result;
};
Expand Down
6 changes: 6 additions & 0 deletions test/tools/spec-runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ function translateClientOptions(options) {
kmsProviders.kmip = {
endpoint: 'localhost:5698'
};
options.autoEncryption.tlsOptions = {
kmip: {
tlsCAFile: process.env.KMIP_TLS_CA_FILE,
tlsCertificateKeyFile: process.env.KMIP_TLS_CERT_FILE
}
}
}

options.autoEncryption.kmsProviders = kmsProviders;
Expand Down

0 comments on commit 77a450f

Please sign in to comment.