From b939bb3ec9a2f949a477de6829e8f99dbe989794 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Thu, 6 Jun 2024 00:19:23 +0200 Subject: [PATCH] fix uri in username with test environment oidc test --- source/auth/tests/legacy/connection-string.json | 4 ++-- source/auth/tests/legacy/connection-string.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/auth/tests/legacy/connection-string.json b/source/auth/tests/legacy/connection-string.json index 5b54e2aadd..d980a117e0 100644 --- a/source/auth/tests/legacy/connection-string.json +++ b/source/auth/tests/legacy/connection-string.json @@ -517,7 +517,7 @@ }, { "description": "should throw an exception if username is specified for test (MONGODB-OIDC)", - "uri": "mongodb://principalName@localhost/?authMechanism=MONGODB-OIDC&ENVIRONMENT:test", + "uri": "mongodb://principalName@localhost/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:test", "valid": false, "credential": null }, @@ -669,4 +669,4 @@ "credential": null } ] -} \ No newline at end of file +} diff --git a/source/auth/tests/legacy/connection-string.yml b/source/auth/tests/legacy/connection-string.yml index a965113395..8b46dfb56a 100644 --- a/source/auth/tests/legacy/connection-string.yml +++ b/source/auth/tests/legacy/connection-string.yml @@ -375,7 +375,7 @@ tests: valid: false credential: - description: should throw an exception if username is specified for test (MONGODB-OIDC) - uri: mongodb://principalName@localhost/?authMechanism=MONGODB-OIDC&ENVIRONMENT:test + uri: mongodb://principalName@localhost/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:test valid: false credential: - description: should throw an exception if specified environment is not supported (MONGODB-OIDC)