From 7713a727d85af8bfbf5d1966e67ecc076153a764 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Fri, 7 Jun 2024 13:25:46 -0500 Subject: [PATCH] PYTHON-4463 Add authMechanism option to tests where needed (#1665) (cherry picked from commit ca543d4881112bf34a107af1b634f77837009814) --- test/connection_string/test/valid-options.json | 2 +- test/connection_string/test/valid-warnings.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 } ],