Skip to content

test(NODE-7538): ignore unknown fields in listIndexes#4922

Merged
dariakp merged 1 commit intomainfrom
NODE-7538
Apr 17, 2026
Merged

test(NODE-7538): ignore unknown fields in listIndexes#4922
dariakp merged 1 commit intomainfrom
NODE-7538

Conversation

@tadjik1
Copy link
Copy Markdown
Member

@tadjik1 tadjik1 commented Apr 17, 2026

Description

Summary of Changes

Only test known fields in the listIndexes response. Latest server returns more fields (collation is included).

Notes for Reviewers

What is the motivation for this change?

Failing test on latest server.

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
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@tadjik1 tadjik1 marked this pull request as ready for review April 17, 2026 15:45
@tadjik1 tadjik1 requested a review from a team as a code owner April 17, 2026 15:45
Copilot AI review requested due to automatic review settings April 17, 2026 15:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Indexes integration test to assert only the stable/known fields from listIndexes() output, so the test remains compatible with newer server versions that include additional fields (e.g., collation).

Changes:

  • Replace strict deep-equality assertion on listIndexes() results with subset-based assertions.
  • Keep validating the presence of the hidden index while ignoring extra server-returned fields.

@dariakp dariakp self-assigned this Apr 17, 2026
@dariakp dariakp added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Apr 17, 2026
@dariakp dariakp merged commit fb70658 into main Apr 17, 2026
34 of 36 checks passed
@dariakp dariakp deleted the NODE-7538 branch April 17, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Primary Review In Review with primary reviewer, not yet ready for team's eyes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants