summaryrefslogtreecommitdiff
path: root/jstests/client_encrypt/fle_encrypt_decrypt_shell.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/client_encrypt/fle_encrypt_decrypt_shell.js')
-rw-r--r--jstests/client_encrypt/fle_encrypt_decrypt_shell.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/jstests/client_encrypt/fle_encrypt_decrypt_shell.js b/jstests/client_encrypt/fle_encrypt_decrypt_shell.js
index e586a25320b..27b6e3e5a51 100644
--- a/jstests/client_encrypt/fle_encrypt_decrypt_shell.js
+++ b/jstests/client_encrypt/fle_encrypt_decrypt_shell.js
@@ -1,15 +1,11 @@
/**
* Check the functionality of encrypt and decrypt functions in KeyStore.js
*/
-load("jstests/client_encrypt/lib/mock_kms.js");
load('jstests/ssl/libs/ssl_helpers.js');
(function() {
"use strict";
-const mock_kms = new MockKMSServerAWS();
-mock_kms.start();
-
const x509_options = {
sslMode: "requireSSL",
sslPEMKeyFile: SERVER_CERT,
@@ -20,12 +16,6 @@ const conn = MongoRunner.runMongod(x509_options);
const test = conn.getDB("test");
const collection = test.coll;
-const awsKMS = {
- accessKeyId: "access",
- secretAccessKey: "secret",
- url: mock_kms.getURL(),
-};
-
let localKMS = {
key: BinData(
0,
@@ -34,14 +24,13 @@ let localKMS = {
const clientSideFLEOptions = {
kmsProviders: {
- aws: awsKMS,
local: localKMS,
},
keyVaultNamespace: "test.coll",
schemaMap: {}
};
-const kmsTypes = ["aws", "local"];
+const kmsTypes = ["local"];
const randomAlgorithm = "AEAD_AES_256_CBC_HMAC_SHA_512-Random";
const deterministicAlgorithm = "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic";
@@ -124,5 +113,4 @@ for (const kmsType of kmsTypes) {
}
MongoRunner.stopMongod(conn);
-mock_kms.stop();
}());