Skip to content

Commit 73b6b42

Browse files
committed
Skip QE prefixPreview and suffixPreview tests on server 9.0.0+
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
1 parent 4a6e516 commit 73b6b42

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

driver-sync/src/test/functional/com/mongodb/client/AbstractClientEncryptionTextExplicitEncryptionTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public void setUp() {
7676
assumeTrue("Text explicit encryption tests disabled", hasEncryptionTestsEnabled());
7777
assumeTrue("Requires newer MongoCrypt version", getMongoCryptVersion().compareTo(REQUIRED_LIB_MONGOCRYPT_VERSION) >= 0);
7878
assumeTrue(serverVersionAtLeast(8, 2));
79+
// TODO-JAVA-6168 update prose tests for post 9.0
80+
assumeTrue(!serverVersionAtLeast(9, 0));
7981
assumeFalse(isStandalone());
8082

8183
MongoNamespace dataKeysNamespace = new MongoNamespace("keyvault.datakeys");
@@ -156,7 +158,7 @@ public void setUp() {
156158
@Test
157159
@DisplayName("Case 1: can find a document by prefix")
158160
public void test1CanFindADocumentByPrefix() {
159-
EncryptOptions encryptOptions = new EncryptOptions("TextPreview")
161+
EncryptOptions encryptOptions = new EncryptOptions("TextPreview")
160162
.keyId(key1Id)
161163
.contentionFactor(0L)
162164
.queryType("prefixPreview")

0 commit comments

Comments
 (0)