You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/integration/client-side-encryption/client_side_encryption.prose.20.mongocryptd_client.test.ts
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,22 @@ describe('20. Bypass creating mongocryptd client when shared library is loaded',
19
19
this.skip();
20
20
}
21
21
22
+
// Start a new thread (referred to as listenerThread)
23
+
// On listenerThread, create a TcpListener on 127.0.0.1 endpoint and port 27021. Start the listener and wait for establishing connections. If any connection is established, then signal about this to the main thread.
24
+
// Drivers MAY pass a different port if they expect their testing infrastructure to be using port 27021. Pass a port that should be free.
25
+
// In Node, we don't need to create a separate thread for the server.
22
26
server=createServer({});
23
27
server.listen(27021);
24
28
server.on('connection',()=>(hasConnection=true));
25
29
30
+
// Create a MongoClient configured with auto encryption (referred to as client_encrypted)
31
+
// Configure the required options. Use the local KMS provider as follows:
32
+
// { "local": { "key": <base64 decoding of LOCAL_MASTERKEY> }}
33
+
// Configure with the keyVaultNamespace set to keyvault.datakeys.
0 commit comments