diff options
author | Shreyas Kalyan <shreyas.kalyan@mongodb.com> | 2019-11-05 20:11:43 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-11-05 20:11:43 +0000 |
commit | 05aec2872159cf583fe8655ca55f4bf70268efcf (patch) | |
tree | cdb587f8c0560c6d118593ace4ad074f3b8a49ef /jstests/client_encrypt | |
parent | ec44fef95a3e7a6620df1ff67796b9d4566aeecb (diff) | |
download | mongo-05aec2872159cf583fe8655ca55f4bf70268efcf.tar.gz |
SERVER-44044 Remove unused second parameter from KeyVault.createDataKey()
Diffstat (limited to 'jstests/client_encrypt')
-rw-r--r-- | jstests/client_encrypt/fle_keys.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/client_encrypt/fle_keys.js b/jstests/client_encrypt/fle_keys.js index d7039e2dfaf..3b21ef89fc2 100644 --- a/jstests/client_encrypt/fle_keys.js +++ b/jstests/client_encrypt/fle_keys.js @@ -61,6 +61,10 @@ assert.eq(1, keyVault.getKeys().itcount()); result = keyVault.addKeyAlternateName(keyId, [2]); assert.eq("TypeError: key alternate name cannot be object or array type.", result); +// Test create key with no CMK +result = keyVault.createKey("aws", ["altName"]); +assert.eq("ValueError: customerMasterKey must be defined if kmsProvider is not local.", result); + keyVault.removeKeyAlternateName(keyId, "mongoKey2"); assert.eq(1, keyVault.getKey(keyId).toArray()[0].keyAltNames.length); |