summaryrefslogtreecommitdiff
path: root/jstests/client_encrypt
diff options
context:
space:
mode:
authorShreyas Kalyan <shreyas.kalyan@10gen.com>2019-06-25 13:52:34 -0700
committerShreyas Kalyan <shreyas.kalyan@10gen.com>2019-07-01 09:16:36 -0700
commit3206241b67ccf4022e618a1f915cf1daf45f0b5c (patch)
tree9fcc56b03a90cf94ba760652315d1463f2ca819c /jstests/client_encrypt
parent53d3a9e6d7b69787c0e4c3f23a930beef6f307bb (diff)
downloadmongo-3206241b67ccf4022e618a1f915cf1daf45f0b5c.tar.gz
SERVER-41919 Disallow specific types for explicit encryption
Diffstat (limited to 'jstests/client_encrypt')
-rw-r--r--jstests/client_encrypt/fle_encrypt_decrypt_shell.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/jstests/client_encrypt/fle_encrypt_decrypt_shell.js b/jstests/client_encrypt/fle_encrypt_decrypt_shell.js
index 368134bf152..71fedecb283 100644
--- a/jstests/client_encrypt/fle_encrypt_decrypt_shell.js
+++ b/jstests/client_encrypt/fle_encrypt_decrypt_shell.js
@@ -50,7 +50,12 @@ load('jstests/ssl/libs/ssl_helpers.js');
UUID(),
ISODate(),
new Date('December 17, 1995 03:24:00'),
- BinData(2, '1234'),
+ BinData(0, '1234'),
+ BinData(1, '1234'),
+ BinData(3, '1234'),
+ BinData(4, '1234'),
+ BinData(5, '1234'),
+ BinData(6, '1234'),
new Timestamp(1, 2),
new ObjectId(),
new DBPointer("mongo", new ObjectId()),
@@ -67,7 +72,8 @@ load('jstests/ssl/libs/ssl_helpers.js');
Code("function() { return true; }")
];
- const failTestCases = [null, undefined, MinKey(), MaxKey(), DBRef("test", "test", "test")];
+ const failTestCases =
+ [null, undefined, MinKey(), MaxKey(), DBRef("test", "test", "test"), BinData(2, '1234')];
const shell = Mongo(conn.host, clientSideFLEOptions);
const keyVault = shell.getKeyVault();