Skip to content

test(NODE-7433): sync fle2v2-InsertFind-keyAltName unified spec test#4971

Draft
tadjik1 wants to merge 1 commit into
mainfrom
feat/NODE-7433-key-alt-name-encrypted-fields-map
Draft

test(NODE-7433): sync fle2v2-InsertFind-keyAltName unified spec test#4971
tadjik1 wants to merge 1 commit into
mainfrom
feat/NODE-7433-key-alt-name-encrypted-fields-map

Conversation

@tadjik1

@tadjik1 tadjik1 commented Jun 23, 2026

Copy link
Copy Markdown
Member

Description

Summary of Changes

Vendors the fle2v2-InsertFind-keyAltName unified spec test from the specifications repo into the driver. This test verifies that keyAltName can be specified in encryptedFieldsMap fields for Queryable Encryption — libmongocrypt translates the keyAltName to keyId transparently, so no driver code changes are required.

Requires libmongocrypt ≥ 1.18.0 (landed via NODE-7569).

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@tadjik1 tadjik1 marked this pull request as ready for review June 23, 2026 12:00
@tadjik1 tadjik1 requested a review from a team as a code owner June 23, 2026 12:00
Copilot AI review requested due to automatic review settings June 23, 2026 12:00
@tadjik1 tadjik1 marked this pull request as draft June 23, 2026 12:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 keyAltName is translated to keyId.
  • Gated execution via runOnRequirements to require MongoDB server >= 7.0.0 and 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants