From 9f5aa3b9f43c8414539f9ccbb80463993197f573 Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Thu, 5 Feb 2026 10:18:21 -0500 Subject: [PATCH 1/3] add `appName` to failpoints of `mongodb-oidc-no-retry.yml` --- source/auth/tests/unified/mongodb-oidc-no-retry.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/auth/tests/unified/mongodb-oidc-no-retry.yml b/source/auth/tests/unified/mongodb-oidc-no-retry.yml index 339f881741..dba2ae8d1d 100644 --- a/source/auth/tests/unified/mongodb-oidc-no-retry.yml +++ b/source/auth/tests/unified/mongodb-oidc-no-retry.yml @@ -21,6 +21,7 @@ createEntities: authMechanismProperties: { $$placeholder: 1 } retryReads: false retryWrites: false + appName: &appName mongodb-oidc-no-retry observeEvents: - commandStartedEvent - commandSucceededEvent @@ -87,6 +88,7 @@ tests: failCommands: - find errorCode: 391 # ReauthenticationRequired + appName: *appName - name: find object: collection0 arguments: @@ -121,6 +123,7 @@ tests: failCommands: - insert errorCode: 391 # ReauthenticationRequired + appName: *appName - name: insertOne object: collection0 arguments: @@ -160,6 +163,7 @@ tests: failCommands: - insert closeConnection: true + appName: *appName - name: insertOne object: collection0 arguments: @@ -180,6 +184,7 @@ tests: failCommands: - saslStart errorCode: 18 + appName: *appName - name: insertOne object: collection0 arguments: @@ -219,6 +224,7 @@ tests: failCommands: - saslStart errorCode: 18 + appName: *appName - name: insertOne object: collection0 arguments: @@ -226,4 +232,4 @@ tests: _id: 1 x: 1 expectError: - errorCode: 18 \ No newline at end of file + errorCode: 18 From d1b624a41f654643d9613e99b64f8d912bbdf9ec Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Thu, 5 Feb 2026 10:18:26 -0500 Subject: [PATCH 2/3] regenerate JSON --- .../tests/unified/mongodb-oidc-no-retry.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/source/auth/tests/unified/mongodb-oidc-no-retry.json b/source/auth/tests/unified/mongodb-oidc-no-retry.json index 0a8658455e..b32ada172a 100644 --- a/source/auth/tests/unified/mongodb-oidc-no-retry.json +++ b/source/auth/tests/unified/mongodb-oidc-no-retry.json @@ -25,7 +25,8 @@ "$$placeholder": 1 }, "retryReads": false, - "retryWrites": false + "retryWrites": false, + "appName": "mongodb-oidc-no-retry" }, "observeEvents": [ "commandStartedEvent", @@ -147,7 +148,8 @@ "failCommands": [ "find" ], - "errorCode": 391 + "errorCode": 391, + "appName": "mongodb-oidc-no-retry" } } } @@ -212,7 +214,8 @@ "failCommands": [ "insert" ], - "errorCode": 391 + "errorCode": 391, + "appName": "mongodb-oidc-no-retry" } } } @@ -289,7 +292,8 @@ "failCommands": [ "insert" ], - "closeConnection": true + "closeConnection": true, + "appName": "mongodb-oidc-no-retry" } } } @@ -321,7 +325,8 @@ "failCommands": [ "saslStart" ], - "errorCode": 18 + "errorCode": 18, + "appName": "mongodb-oidc-no-retry" } } } @@ -398,7 +403,8 @@ "failCommands": [ "saslStart" ], - "errorCode": 18 + "errorCode": 18, + "appName": "mongodb-oidc-no-retry" } } } From 2bdcdcbe1068d2d9609452c32e871b76a8283b14 Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Thu, 5 Feb 2026 10:21:20 -0500 Subject: [PATCH 3/3] update prose test instructions to require an `appName` --- source/auth/tests/mongodb-oidc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/auth/tests/mongodb-oidc.md b/source/auth/tests/mongodb-oidc.md index 81a8c025d0..affb3e6efa 100644 --- a/source/auth/tests/mongodb-oidc.md +++ b/source/auth/tests/mongodb-oidc.md @@ -35,8 +35,8 @@ Drivers MUST implement all prose tests in this section. Unless otherwise noted, configured with `retryReads=false`. > [!NOTE] -> For test cases that create fail points, drivers MUST either use a unique `appName` or explicitly remove the fail point -> callback to prevent interaction between test cases. +> For test cases that create fail points, drivers MUST use a unique `appName` to prevent interaction with other +> environment processes, and explicitly remove the fail point to prevent interaction between test runs. After setting up your OIDC [environment](https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/auth_oidc/README.md),