diff --git a/test/connection_string/test/valid-options.json b/test/connection_string/test/valid-options.json index 3d174c5ab..3c79fe7ae 100644 --- a/test/connection_string/test/valid-options.json +++ b/test/connection_string/test/valid-options.json @@ -40,7 +40,7 @@ }, { "description": "Colon in a key value pair", - "uri": "mongodb://example.com?authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster", + "uri": "mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster", "valid": true, "warning": false, "hosts": [ diff --git a/test/connection_string/test/valid-warnings.json b/test/connection_string/test/valid-warnings.json index 6bedbc6a6..f0e8288bc 100644 --- a/test/connection_string/test/valid-warnings.json +++ b/test/connection_string/test/valid-warnings.json @@ -96,13 +96,13 @@ }, { "description": "Comma in a key value pair causes a warning", - "uri": "mongodb://example.com?authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2", + "uri": "mongodb://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2", "valid": true, "warning": true, "hosts": [ { "type": "hostname", - "host": "example.com", + "host": "localhost", "port": null } ],