Skip to content

Commit ef4234c

Browse files
committed
Pass --auth credentials when connecting to auth-enabled servers
Addresses the inconsistency where connect_mongodb was called without credentials against auth-enabled deployments. These tests now verify that user creation worked and that bob's credentials are valid.
1 parent be937e7 commit ef4234c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.evergreen/tests/test-mongodb-runner.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ bash ./run-mongodb.sh start
4848
connect_mongodb
4949

5050
bash ./run-mongodb.sh start --topology standalone --auth
51-
connect_mongodb
51+
connect_mongodb --auth
5252

5353
bash ./run-mongodb.sh start --version 7.0 --topology replica_set --ssl
5454
connect_mongodb --ssl
5555

5656
bash ./run-mongodb.sh start --version latest --topology sharded_cluster --auth --ssl
57-
connect_mongodb --ssl
57+
connect_mongodb --ssl --auth
5858

5959
# Verify that auth is enforced when starting with AUTH=auth SSL=yes.
6060
# An unauthenticated connection must be rejected, and an authenticated one must succeed.

0 commit comments

Comments
 (0)