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: driver-core/src/test/resources/client-side-encryption/README.rst
+45-7Lines changed: 45 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -163,6 +163,8 @@ Do the following before running spec tests:
163
163
164
164
Load each YAML (or JSON) file using a Canonical Extended JSON parser.
165
165
166
+
If the test file name matches the regular expression ``fle2\-Range\-.*\-Correctness``, drivers MAY skip the test on macOS. The ``fle2-Range`` tests are very slow on macOS and do not provide significant additional test coverage.
167
+
166
168
Then for each element in ``tests``:
167
169
168
170
#. If the ``skipReason`` field is present, skip this test completely.
@@ -1677,7 +1679,14 @@ Expect no error on construction.
1677
1679
12. Explicit Encryption
1678
1680
~~~~~~~~~~~~~~~~~~~~~~~
1679
1681
1680
-
The Explicit Encryption tests require MongoDB server 6.0+. The tests must not run against a standalone.
1682
+
The Explicit Encryption tests require MongoDB server 7.0+. The tests must not run against a standalone.
1683
+
1684
+
.. note::
1685
+
MongoDB Server 7.0 introduced a backwards breaking change to the Queryable Encryption (QE) protocol: QEv2.
1686
+
libmongocrypt 1.8.0 is configured to use the QEv2 protocol.
1687
+
1688
+
.. note::
1689
+
Skip this test on Serverless until MongoDB Serverless enables the QEv2 protocol. Refer: `DRIVERS-2589 <https://jira.mongodb.org/browse/DRIVERS-2589>`_
1681
1690
1682
1691
Before running each of the following test cases, perform the following Test Setup.
1683
1692
@@ -2493,7 +2502,14 @@ The following tests that a mongocryptd client is not created when shared library
2493
2502
21. Automatic Data Encryption Keys
2494
2503
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2495
2504
2496
-
The Automatic Data Encryption Keys tests require MongoDB server 6.0+. The tests must not run against a standalone.
2505
+
The Automatic Data Encryption Keys tests require MongoDB server 7.0+. The tests must not run against a standalone.
2506
+
2507
+
.. note::
2508
+
MongoDB Server 7.0 introduced a backwards breaking change to the Queryable Encryption (QE) protocol: QEv2.
2509
+
libmongocrypt 1.8.0 is configured to use the QEv2 protocol.
2510
+
2511
+
.. note::
2512
+
Skip this test on Serverless until MongoDB Serverless enables the QEv2 protocol. Refer: `DRIVERS-2589 <https://jira.mongodb.org/browse/DRIVERS-2589>`_
2497
2513
2498
2514
For each of the following test cases, assume `DB` is a valid open database
2499
2515
handle, and assume a ClientEncryption_ object `CE` created using the following
@@ -2504,9 +2520,24 @@ options::
2504
2520
keyVaultNamespace: "keyvault.datakeys",
2505
2521
kmsProviders: {
2506
2522
local: { key: base64Decode(LOCAL_MASTERKEY) },
2523
+
aws: {
2524
+
accessKeyId: <set from environment>,
2525
+
secretAccessKey: <set from environment>
2526
+
},
2507
2527
},
2508
2528
}
2509
2529
2530
+
Run each test case with each of these KMS providers: ``aws``, ``local``. The KMS provider name is referred to as ``kmsProvider``.
2531
+
When testing ``aws``, use the following as the ``masterKey`` option:
to obtain a new collection `Coll` and data key `key1`. Expect success.
2618
2649
3. Use `CE` to explicitly encrypt the string "123-45-6789" using
2619
2650
algorithm `Unindexed` and data key `key1`. Refer result as `encryptedPayload`.
@@ -2627,7 +2658,14 @@ with encrypted value.
2627
2658
2628
2659
22. Range Explicit Encryption
2629
2660
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2630
-
The Range Explicit Encryption tests require MongoDB server 6.2+. The tests must not run against a standalone.
2661
+
The Range Explicit Encryption tests require MongoDB server 7.0+. The tests must not run against a standalone.
2662
+
2663
+
.. note::
2664
+
MongoDB Server 7.0 introduced a backwards breaking change to the Queryable Encryption (QE) protocol: QEv2.
2665
+
libmongocrypt 1.8.0 is configured to use the QEv2 protocol.
2666
+
2667
+
.. note::
2668
+
Skip this test on Serverless until MongoDB Serverless enables the QEv2 protocol. Refer: `DRIVERS-2589 <https://jira.mongodb.org/browse/DRIVERS-2589>`_
2631
2669
2632
2670
Each of the following test cases must pass for each of the supported types (``DecimalNoPrecision``, ``DecimalPrecision``, ``DoublePrecision``, ``DoubleNoPrecision``, ``Date``, ``Int``, and ``Long``), unless it is stated the type should be skipped.
Copy file name to clipboardExpand all lines: driver-core/src/test/resources/client-side-encryption/legacy/fle2v2-EncryptedFields-vs-EncryptedFieldsMap.json
0 commit comments