Skip to content

Skip QE prefixPreview and suffixPreview tests on server 9.0.0+#1954

Merged
nhachicha merged 2 commits intomongodb:mainfrom
rozza:JAVA-6184
Apr 30, 2026
Merged

Skip QE prefixPreview and suffixPreview tests on server 9.0.0+#1954
nhachicha merged 2 commits intomongodb:mainfrom
rozza:JAVA-6184

Conversation

@rozza
Copy link
Copy Markdown
Member

@rozza rozza commented Apr 30, 2026

Update specifications submodule to pick up maxServerVersion guards for unified spec tests. Skip all text explicit encryption prose tests on server 9.0+ since prefixPreview/suffixPreview are deprecated.

JAVA-6184

Update specifications submodule to pick up maxServerVersion guards
for unified spec tests. Skip all text explicit encryption prose tests
on server 9.0+ since prefixPreview/suffixPreview are deprecated.

JAVA-6184
@rozza rozza marked this pull request as ready for review April 30, 2026 10:49
@rozza rozza requested a review from a team as a code owner April 30, 2026 10:49
@rozza rozza requested review from nhachicha and strogiyotec and removed request for strogiyotec April 30, 2026 10:49
@nhachicha nhachicha requested a review from Copilot April 30, 2026 11:00
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

This PR updates the Java driver’s functional test suite to accommodate server 9.0+ behavior changes around Queryable Encryption (QE) text explicit encryption, and adds a temporary unified-test skip for a failing change streams spec test.

Changes:

  • Skip all text explicit encryption prose tests when running against server version 9.0+.
  • Add a temporary skipJira guard for a failing change-streams-nsType unified spec test (JAVA-6181).

Reviewed changes

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

File Description
driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedTestModifications.java Adds a temporary unified-spec skip for a change-streams nsType test.
driver-sync/src/test/functional/com/mongodb/client/AbstractClientEncryptionTextExplicitEncryptionTest.java Skips the QE text explicit encryption prose tests on server 9.0+.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rozza
Copy link
Copy Markdown
Member Author

rozza commented Apr 30, 2026

Missed a prose test in the sync driver - temp disabled

assumeTrue("Requires newer MongoCrypt version", getMongoCryptVersion().compareTo(REQUIRED_LIB_MONGOCRYPT_VERSION) >= 0);
assumeTrue(serverVersionAtLeast(8, 2));
// TODO-JAVA-6168 update prose tests for post 9.0
assumeTrue(!serverVersionAtLeast(9, 0));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Claude Nit - we can use assumeFalse instead

@nhachicha nhachicha merged commit a6ea5ff into mongodb:main Apr 30, 2026
53 checks passed
@rozza rozza deleted the JAVA-6184 branch April 30, 2026 12:46
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.

3 participants