From 59a2c8d02ffc7f37a7b262eb4c41b0935ceedc3b Mon Sep 17 00:00:00 2001 From: Almas Abdrazak Date: Tue, 20 Jan 2026 16:52:30 -0800 Subject: [PATCH 1/4] ignore failing aws test --- .evergreen/.evg.yml | 2 +- .../connection/AwsAuthenticationSpecification.groovy | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.evergreen/.evg.yml b/.evergreen/.evg.yml index 968db1b3c9..ed412ffb9a 100644 --- a/.evergreen/.evg.yml +++ b/.evergreen/.evg.yml @@ -112,7 +112,7 @@ functions: # If this was a patch build, doing a fresh clone would not actually test the patch cp -R ${PROJECT_DIRECTORY}/ $DRIVERS_TOOLS else - git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS + git clone --depth 1 https://github.com/strogiyotec/drivers-evergreen-tools.git $DRIVERS_TOOLS fi echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config diff --git a/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy b/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy index 8dd53bc1c0..06fcc4a6a1 100644 --- a/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy +++ b/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy @@ -13,6 +13,7 @@ import com.mongodb.connection.SocketSettings import com.mongodb.internal.authentication.AwsCredentialHelper import org.bson.BsonDocument import org.bson.BsonString +import spock.lang.Ignore import spock.lang.IgnoreIf import spock.lang.Specification @@ -83,7 +84,9 @@ class AwsAuthenticationSpecification extends Specification { async << [true, false] } - @IgnoreIf({ System.getenv('AWS_SESSION_TOKEN') == null || System.getenv('AWS_SESSION_TOKEN') == '' }) + //@IgnoreIf({ System.getenv('AWS_SESSION_TOKEN') == null || System.getenv('AWS_SESSION_TOKEN') == '' }) + //TODO-JAVA-6064 + @Ignore def 'should authorize when successfully authenticated using provider'() { given: def connection = createConnection(async, From 6694946cd243f54c5e234012899c6bed22ad0c3d Mon Sep 17 00:00:00 2001 From: Almas Abdrazak Date: Tue, 20 Jan 2026 17:27:16 -0800 Subject: [PATCH 2/4] revert tools url --- .evergreen/.evg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.evergreen/.evg.yml b/.evergreen/.evg.yml index ed412ffb9a..525861928f 100644 --- a/.evergreen/.evg.yml +++ b/.evergreen/.evg.yml @@ -112,7 +112,7 @@ functions: # If this was a patch build, doing a fresh clone would not actually test the patch cp -R ${PROJECT_DIRECTORY}/ $DRIVERS_TOOLS else - git clone --depth 1 https://github.com/strogiyotec/drivers-evergreen-tools.git $DRIVERS_TOOLS + git clone --depth 1 https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS fi echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config From 987a235ec82ccff4f3060264e3461711b11f3b34 Mon Sep 17 00:00:00 2001 From: Almas Abdrazak Date: Tue, 20 Jan 2026 21:13:44 -0800 Subject: [PATCH 3/4] ignore correct test case --- .../connection/AwsAuthenticationSpecification.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy b/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy index 06fcc4a6a1..1538d66984 100644 --- a/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy +++ b/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy @@ -84,9 +84,7 @@ class AwsAuthenticationSpecification extends Specification { async << [true, false] } - //@IgnoreIf({ System.getenv('AWS_SESSION_TOKEN') == null || System.getenv('AWS_SESSION_TOKEN') == '' }) - //TODO-JAVA-6064 - @Ignore + @IgnoreIf({ System.getenv('AWS_SESSION_TOKEN') == null || System.getenv('AWS_SESSION_TOKEN') == '' }) def 'should authorize when successfully authenticated using provider'() { given: def connection = createConnection(async, @@ -117,7 +115,9 @@ class AwsAuthenticationSpecification extends Specification { } // This test is just proving that the credential provider is not being totally ignored - @IgnoreIf({ System.getenv('AWS_SESSION_TOKEN') == null || System.getenv('AWS_SESSION_TOKEN') == '' }) + //@IgnoreIf({ System.getenv('AWS_SESSION_TOKEN') == null || System.getenv('AWS_SESSION_TOKEN') == '' }) + //TODO-JAVA-6064 + @Ignore def 'should not authenticate when provider gives invalid session token'() { given: def connection = createConnection(async, From 565cb21754150d0e1a4b9573f216e5a61405b4cf Mon Sep 17 00:00:00 2001 From: Almas Abdrazak Date: Wed, 21 Jan 2026 10:56:28 -0800 Subject: [PATCH 4/4] revert ignore test --- .../connection/AwsAuthenticationSpecification.groovy | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy b/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy index 1538d66984..8dd53bc1c0 100644 --- a/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy +++ b/driver-core/src/test/functional/com/mongodb/internal/connection/AwsAuthenticationSpecification.groovy @@ -13,7 +13,6 @@ import com.mongodb.connection.SocketSettings import com.mongodb.internal.authentication.AwsCredentialHelper import org.bson.BsonDocument import org.bson.BsonString -import spock.lang.Ignore import spock.lang.IgnoreIf import spock.lang.Specification @@ -115,9 +114,7 @@ class AwsAuthenticationSpecification extends Specification { } // This test is just proving that the credential provider is not being totally ignored - //@IgnoreIf({ System.getenv('AWS_SESSION_TOKEN') == null || System.getenv('AWS_SESSION_TOKEN') == '' }) - //TODO-JAVA-6064 - @Ignore + @IgnoreIf({ System.getenv('AWS_SESSION_TOKEN') == null || System.getenv('AWS_SESSION_TOKEN') == '' }) def 'should not authenticate when provider gives invalid session token'() { given: def connection = createConnection(async,