Skip to content

Commit a6ea5ff

Browse files
authored
Skip QE prefixPreview and suffixPreview tests on server 9.0.0+ (#1954)
* 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 * Temporary disable nsType changestream test JAVA-6181
1 parent 23ed7c4 commit a6ea5ff

4 files changed

Lines changed: 9 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")

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
import static org.junit.jupiter.api.Assertions.assertNull;
5454
import static org.junit.jupiter.api.Assertions.assertTrue;
5555
import static org.junit.jupiter.api.Assertions.fail;
56+
import static org.junit.jupiter.api.Assumptions.assumeFalse;
5657
import static org.junit.jupiter.api.Assumptions.assumeTrue;
5758

5859

@@ -364,6 +365,8 @@ public void test19SplitChangeStreamEvents() {
364365
@Test
365366
public void testNameSpaceTypePresentChangeStreamEvents() {
366367
assumeTrue(serverVersionAtLeast(8, 1));
368+
// TODO-JAVA-6181 temp disabling as failing on latest, while specs are updated
369+
assumeFalse(serverVersionAtLeast(9, 0));
367370
collection.drop();
368371

369372
ChangeStreamIterable<Document> changeStream = database

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ public static void applyCustomizations(final TestDef def) {
4747
def.skipNoncompliantReactive("event sensitive tests. We can't guarantee the amount of GetMore commands sent in the reactive driver")
4848
.test("change-streams", "change-streams", "Test that comment is set on getMore")
4949
.test("change-streams", "change-streams", "Test that comment is not set on getMore - pre 4.4");
50+
def.skipJira("https://jira.mongodb.org/browse/JAVA-6181 temp disabling as failing on latest, while specs are updated")
51+
.test("change-streams", "change-streams-nsType", "nsType is present when creating timeseries");
5052
def.modify(IGNORE_EXTRA_EVENTS)
5153
.test("change-streams", "change-streams", "Test with document comment")
5254
.test("change-streams", "change-streams", "Test with string comment");

0 commit comments

Comments
 (0)