Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

import static com.mongodb.ClusterFixture.isStandalone;
import static com.mongodb.ClusterFixture.serverVersionAtLeast;
import static com.mongodb.ClusterFixture.serverVersionLessThan;
import static com.mongodb.client.Fixture.getDefaultDatabase;
import static com.mongodb.client.Fixture.getDefaultDatabaseName;
import static com.mongodb.client.Fixture.getMongoClient;
Expand Down Expand Up @@ -138,6 +139,10 @@ public void canInsertEncryptedIndexedAndFind() {

@Test
public void canInsertEncryptedIndexedAndFindWithNonZeroContention() {
// JAVA-6237: this test inserts with contentionFactor 10 but encryptedFields.json configures the
// encryptedIndexed field with contention 0. Servers >= 9.0 reject this mismatch (SERVER-91887);
// skip until the spec prose test is corrected (DRIVERS-3547).
assumeTrue(serverVersionLessThan(9, 0));
EncryptOptions encryptOptions = new EncryptOptions("Indexed").keyId(key1Id).contentionFactor(10L);
MongoCollection<BsonDocument> coll = encryptedClient.getDatabase(getDefaultDatabaseName())
.getCollection("explicit_encryption", BsonDocument.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,18 @@ public static void applyCustomizations(final TestDef def) {
// Client side encryption (QE)
def.skipJira("https://jira.mongodb.org/browse/JAVA-5675 Support QE with Client.bulkWrite")
.file("client-side-encryption/tests/unified", "client bulkWrite with queryable encryption");
def.skipJira("https://jira.mongodb.org/browse/JAVA-6244 QE GA \"substring\" query type is not yet "
+ "implemented (DRIVERS-3540)")
.file("client-side-encryption/tests/unified", "QE-Text-substring");

// client-side-operation-timeout (CSOT)
// The expected change stream timeout-refresh behaviour is unspecified on server 9.0+ (DRIVERS-3006), so the
// CSOT suite fails there (most visibly on sharded clusters, where extra mongos round-trips exceed the tight
// timeoutMS). Skip the suite on 9.0+ until the spec is clarified.
def.skipJira("https://jira.mongodb.org/browse/JAVA-6078 change stream timeout-refresh behaviour is "
+ "unspecified on server 9.0+ (DRIVERS-3006)")
.when(() -> !serverVersionLessThan(9, 0))
.directory("client-side-operations-timeout");
def.retry("Unified CSOT tests do not account for RTT which varies in TLS vs non-TLS runs")
.whenFailureContains("timeout")
.test("client-side-operations-timeout",
Expand Down Expand Up @@ -473,6 +483,14 @@ public static void applyCustomizations(final TestDef def) {
.file("transactions", "backpressure-retryable-commit");
def.skipJira("https://jira.mongodb.org/browse/JAVA-5956 TODO-JAVA-5956")
.file("transactions", "backpressure-retryable-abort");
def.skipJira("https://jira.mongodb.org/browse/JAVA-6179")
.test("transactions", "retryable-writes", "increment txnNumber")
.test("transactions", "commit", "reset session state commit")
.test("transactions", "commit", "reset session state abort")
.test("transactions-convenient-api", "callback-commits",
"withTransaction still succeeds if callback commits and runs extra op")
.test("transactions-convenient-api", "callback-aborts",
"withTransaction still succeeds if callback aborts and runs extra op");

// valid-pass

Expand Down
2 changes: 1 addition & 1 deletion testing/resources/specifications
Submodule specifications updated 189 files