Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/auth/tests/mongodb-oidc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
18 changes: 12 additions & 6 deletions source/auth/tests/unified/mongodb-oidc-no-retry.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion source/auth/tests/unified/mongodb-oidc-no-retry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ createEntities:
authMechanismProperties: { $$placeholder: 1 }
retryReads: false
retryWrites: false
appName: &appName mongodb-oidc-no-retry
observeEvents:
- commandStartedEvent
- commandSucceededEvent
Expand Down Expand Up @@ -87,6 +88,7 @@ tests:
failCommands:
- find
errorCode: 391 # ReauthenticationRequired
appName: *appName
- name: find
object: collection0
arguments:
Expand Down Expand Up @@ -121,6 +123,7 @@ tests:
failCommands:
- insert
errorCode: 391 # ReauthenticationRequired
appName: *appName
- name: insertOne
object: collection0
arguments:
Expand Down Expand Up @@ -160,6 +163,7 @@ tests:
failCommands:
- insert
closeConnection: true
appName: *appName
- name: insertOne
object: collection0
arguments:
Expand All @@ -180,6 +184,7 @@ tests:
failCommands:
- saslStart
errorCode: 18
appName: *appName
- name: insertOne
object: collection0
arguments:
Expand Down Expand Up @@ -219,11 +224,12 @@ tests:
failCommands:
- saslStart
errorCode: 18
appName: *appName
- name: insertOne
object: collection0
arguments:
document:
_id: 1
x: 1
expectError:
errorCode: 18
errorCode: 18
Loading