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
Configure with the ``keyVaultNamespace`` set to ``keyvault.datakeys``.
993
+
994
+
Configure ``client_encrypted`` to use the schema `external/external-schema.json <../external/external-schema.json>`_ for ``db.coll`` by setting a schema map like: ``{ "db.coll": <contents of external-schema.json>}``
Drivers MAY pass a different port if they expect their testing infrastructure to be using port 27021. Pass a port that should be free.
1008
+
1009
+
#. Use ``client_encrypted`` to insert the document ``{"unencrypted": "test"}`` into ``db.coll``. Expect this to succeed.
1010
+
1011
+
#. Validate that mongocryptd was not spawned. Create a MongoClient to localhost:27021 (or whatever was passed via ``--port``) with serverSelectionTimeoutMS=1000. Run a handshake command and ensure it fails with a server selection timeout.
1012
+
974
1013
.. note::
975
1014
976
1015
IMPORTANT: If crypt_shared_ is visible to the operating system's library
977
1016
search mechanism, the expected server error generated by these
978
1017
``mongocryptdBypassSpawn`` tests will not appear because libmongocrypt will
979
1018
load the ``crypt_shared`` library instead of consulting mongocryptd. For
980
-
these tests, it is required that libmongocrypt *not* load ``crypt_shared``.
1019
+
the following tests, it is required that libmongocrypt *not* load ``crypt_shared``.
981
1020
Refer to the client-side-encryption document for more information on
0 commit comments