PYTHON-5813 - Skip QE prefixPreview and suffixPreview tests on server…#2792
Merged
NoahStapp merged 3 commits intomongodb:masterfrom May 5, 2026
Merged
PYTHON-5813 - Skip QE prefixPreview and suffixPreview tests on server…#2792NoahStapp merged 3 commits intomongodb:masterfrom
NoahStapp merged 3 commits intomongodb:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to keep client-side encryption QE text-preview tests green against MongoDB 9.0+ by version-gating preview-mode test coverage that is only valid on 8.x, while also fixing one unified-spec description string.
Changes:
- Added
require_version_max(8, 99, 99)to the explicit text encryption prose tests for prefix/suffix preview behavior. - Added
maxServerVersion: 8.99.99to the unified QE text prefix/suffix and related structured-encryption spec files. - Corrected the
QE-Text-substringPreviewtest description fromsuffixPreviewtosubstringPreview.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
test/test_encryption.py |
Synchronous mirror of the prose-test server-version gating changes. |
test/asynchronous/test_encryption.py |
Source prose tests updated to skip prefix/suffix preview cases on 9.0+. |
test/client-side-encryption/spec/unified/QE-Text-suffixPreview.json |
Unified suffix preview spec now capped at 8.x servers. |
test/client-side-encryption/spec/unified/QE-Text-substringPreview.json |
Fixes the substring spec’s test description text. |
test/client-side-encryption/spec/unified/QE-Text-prefixPreview.json |
Unified prefix preview spec now capped at 8.x servers. |
test/client-side-encryption/spec/unified/QE-Text-compactStructuredEncryptionData.json |
Caps structured-encryption compaction spec that still embeds suffixPreview. |
test/client-side-encryption/spec/unified/QE-Text-cleanupStructuredEncryptionData.json |
Caps structured-encryption cleanup spec that still embeds suffixPreview. |
sleepyStick
approved these changes
May 5, 2026
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.
… 9.0.0+
PYTHON-5813
Changes in this PR
Skip QE "prefixPreview" and "suffixPreview" tests on server 9.0.0+.
Test Plan
Test sync only.
Checklist
Checklist for Author
[ ] Did you update the changelog (if necessary)?[ ] Is any followup work tracked in a JIRA ticket? If so, add link(s).Checklist for Reviewer