Assert successful response to compactStructuredEncryptionData.
Add fle2v2-Rangev2-Compact to test compact with "range".
Partially resolves DRIVERS-2776.
Background & Motivation
Spec tests are motivated by the bug fix in MONGOCRYPT-699.
Adding result: { ok: 1 } to the operation is to ensure test runners check the operation succeeded. The test format does not require checking the operation succeeded if result is not present.
An "insert" operation is added before compactStructuredEncryptionData for the range test. The server check requiring encryptionInformation appears to require data present to trigger the error.
Please complete the following before merging:
[ ] Update changelog. N/A. Test changes only.
[x] Make sure there are generated JSON files from the YAML test files.
[x] Test changes in at least one language driver. Tested in C.
~~[ ] Test these changes against all server versions and topologies (including standalone, replica set, sharded
clusters, and serverless).~~ C driver does not currently test IUE with sharded or serverless.
Summary
compactStructuredEncryptionData
.fle2v2-Rangev2-Compact
to test compact with "range".Partially resolves DRIVERS-2776.
Background & Motivation
Spec tests are motivated by the bug fix in MONGOCRYPT-699.
Adding
result: { ok: 1 }
to the operation is to ensure test runners check the operation succeeded. The test format does not require checking the operation succeeded ifresult
is not present.An "insert" operation is added before
compactStructuredEncryptionData
for the range test. The server check requiringencryptionInformation
appears to require data present to trigger the error.Please complete the following before merging:
[ ] Update changelog.N/A. Test changes only.