DRIVERS-3470 case and diacritic text explicit encryption tests#1931
Open
mdb-ad wants to merge 9 commits into
Open
DRIVERS-3470 case and diacritic text explicit encryption tests#1931mdb-ad wants to merge 9 commits into
mdb-ad wants to merge 9 commits into
Conversation
kevinAlbs
reviewed
May 5, 2026
kevinAlbs
approved these changes
May 8, 2026
Contributor
kevinAlbs
left a comment
There was a problem hiding this comment.
Nice, LGTM with additional notes to skip server 9.0.0+ and require libmongocrypt 1.18.1.
| Expect an error from libmongocrypt with a message containing the string: "contention factor is required for textPreview | ||
| algorithm". | ||
|
|
||
| #### Case 8: can find a case and diacritic-insensitively indexed document by prefix and suffix |
Contributor
There was a problem hiding this comment.
Also note: "Skip this test case if testing MongoDB server 9.0.0+." note (similar to Case 7) to cases 8 and 9 (requiring prefixPreview and suffixPreview).
And note that libmongocrypt 1.18.1 is required for test cases 8 and 9 since those are regression tests for MONGOCRYPT-903.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Tests case and diacritic insensitivity. Also serves as a regression test for MONGOCRYPT-903. Note: the fix was released in libmongocrypt 1.18.1
Test implementation
Unlike other text prose tests, the new case and diacritic tests use automatic encryption to insert the test document. This is because the libmongocrypt bug reversed case and diacritic sensitivity both on the insert and find, causing the tests to pass.
C driver implementation: mongodb/mongo-c-driver#2289
Evergreen patch (C driver): https://spruce.corp.mongodb.com/version/69fe3b156c09fa0007dd4f45
Libmongocrypt build (for drivers testing): https://spruce.corp.mongodb.com/version/libmongocrypt_d64db0ad9db89b8ba85e6330133e2df55b5eb9ff