Skip to content

DRIVERS-3106 revise fle2v2-BypassQueryAnalysis #1789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 19, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ createEntities:
id: &encryptedColl encryptedColl
database: *encryptedDB
collectionName: &encryptedCollName default
- client:
id: &client1 client1
- database:
id: &unencryptedDB unencryptedDB
client: *client1
databaseName: *encryptedDBName
- collection:
id: &unencryptedColl unencryptedColl
database: *unencryptedDB
collectionName: *encryptedCollName

initialData:
- databaseName: &keyvaultDBName keyvault
Expand Down Expand Up @@ -61,6 +71,12 @@ tests:
arguments:
filter: { "_id": 1 }
expectResult: [{"_id": 1, "encryptedIndexed": "123" }]
- object: *unencryptedColl
name: find
arguments:
filter: {}
expectResult:
- {"_id": 1, "encryptedIndexed": { "$$type": "binData" }, "__safeContent__": [{ "$binary" : { "base64" : "31eCYlbQoVboc5zwC8IoyJVSkag9PxREka8dkmbXJeY=", "subType" : "00" } }] }
expectEvents:
- client: *client0
events:
Expand Down Expand Up @@ -111,9 +127,4 @@ tests:
}
$db: *keyvaultDBName
readConcern: { level: "majority" }
commandName: find
outcome:
- collectionName: *encryptedCollName
databaseName: *encryptedDBName
documents:
- {"_id": 1, "encryptedIndexed": { "$$type": "binData" }, "__safeContent__": [{ "$binary" : { "base64" : "31eCYlbQoVboc5zwC8IoyJVSkag9PxREka8dkmbXJeY=", "subType" : "00" } }] }
commandName: find
3 changes: 2 additions & 1 deletion source/unified-test-format/unified-test-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -3123,7 +3123,8 @@ If [test.runOnRequirements](#test_runOnRequirements) is specified, the test runn

If [initialData](#initialData) is specified, for each [collectionData](#collectiondata) therein the test runner MUST set
up the collection. All setup operations MUST use the internal MongoClient and a "majority" write concern. The test
runner MUST first drop the collection. If a `createOptions` document is present, the test runner MUST execute a `create`
runner MUST first drop the collection. The test runner must also drop the collections `_enxcol.<collectionName>.esc` and
`_enxcol.<collectionName>.ecoc`. If a `createOptions` document is present, the test runner MUST execute a `create`
command to create the collection with the specified options. The test runner MUST then insert the specified documents
(if any). If no documents are present and `createOptions` is not set, the test runner MUST create the collection. If the
topology is sharded, the test runner SHOULD use a single mongos for handling [initialData](#initialData) to avoid
Expand Down
Loading