Skip to content

PYTHON-5882 Latest is now enforcing server-side QE - #2875

Merged
aclark4life merged 3 commits into
mongodb:masterfrom
aclark4life:PYTHON-5882
Jun 15, 2026
Merged

aclark4life merged 3 commits into
mongodb:masterfrom
aclark4life:PYTHON-5882

Conversation

@aclark4life

@aclark4life aclark4life commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

PYTHON-5882

Changes in this PR

Test Plan

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage?
  • Is any followup work tracked in a JIRA ticket? If so, add link(s).

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

Copilot AI review requested due to automatic review settings June 15, 2026 19:09
@aclark4life
aclark4life requested a review from a team as a code owner June 15, 2026 19:09
@aclark4life
aclark4life requested a review from NoahStapp June 15, 2026 19:09

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

This PR updates the explicit Queryable Encryption contention test setup to recreate the explicit_encryption collection with a non-zero queries.contention value, aligning the collection’s encryptedFields configuration with the contention_factor used by the test (to satisfy newer server-side QE enforcement).

Changes:

  • Recreate the explicit_encryption collection inside test_02_insert_encrypted_indexed_and_find_contention with queries.contention = 10 before running the assertions.
  • Apply the same setup change in both synchronous and asynchronous encryption test suites.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
test/test_encryption.py Recreates the QE collection with queries.contention=10 before the contention-factor test.
test/asynchronous/test_encryption.py Async equivalent of recreating the QE collection with queries.contention=10.

Comment thread test/test_encryption.py Resolved
Comment thread test/asynchronous/test_encryption.py Resolved

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Using a lower contention factor in a find to return fewer results is no longer
testable with the server enforcing strict matching.

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread test/asynchronous/test_encryption.py Resolved

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@aclark4life
aclark4life merged commit fa3c077 into mongodb:master Jun 15, 2026
47 of 48 checks passed
@aclark4life
aclark4life deleted the PYTHON-5882 branch June 15, 2026 20:05
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.

4 participants