test(NODE-7433): sync fle2v2-InsertFind-keyAltName unified spec test#4971
Draft
tadjik1 wants to merge 1 commit into
Draft
test(NODE-7433): sync fle2v2-InsertFind-keyAltName unified spec test#4971tadjik1 wants to merge 1 commit into
tadjik1 wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Vendors the fle2v2-InsertFind-keyAltName Queryable Encryption (FLE2v2) unified spec test into the Node.js driver’s spec test fixtures, validating that keyAltName can be provided in encryptedFieldsMap and is translated by libmongocrypt during command construction.
Changes:
- Added a new unified spec test fixture covering insert/find behavior with an indexed encrypted field configured via
keyAltName. - Added a new unified spec test fixture covering createCollection behavior where
keyAltNameis translated tokeyId. - Gated execution via
runOnRequirementsto require MongoDB server>= 7.0.0and libmongocrypt>= 1.18.0.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| test/spec/client-side-encryption/tests/unified/fle2v2-InsertFind-keyAltName.yml | Adds the upstream YAML unified spec test definition for keyAltName translation coverage. |
| test/spec/client-side-encryption/tests/unified/fle2v2-InsertFind-keyAltName.json | Adds the JSON form consumed by the unified spec runner for the same test scenarios. |
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.
Description
Summary of Changes
Vendors the
fle2v2-InsertFind-keyAltNameunified spec test from the specifications repo into the driver. This test verifies thatkeyAltNamecan be specified inencryptedFieldsMapfields for Queryable Encryption — libmongocrypt translates thekeyAltNametokeyIdtransparently, so no driver code changes are required.Requires libmongocrypt ≥ 1.18.0 (landed via NODE-7569).
Double check the following
npm run check:lint)type(NODE-xxxx)[!]: description