From 57cdf9bb665e39df40a31b48175580c819693820 Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Fri, 7 Jun 2024 15:55:05 +0200 Subject: [PATCH] fix uri in username with test environment oidc test (#1597) --- 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)