Skip to content

Commit c6545f3

Browse files
committed
chore: submodule update
1 parent 28539cb commit c6545f3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

test/spec/auth/legacy/connection-string.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,18 @@ tests:
320320
mechanism: MONGODB-AWS
321321
mechanism_properties:
322322
AWS_SESSION_TOKEN: token!@#$%^&*()_+
323+
- description: should throw an exception if username provided (MONGODB-AWS)
324+
implies default mechanism)
325+
uri: mongodb://user:localhost.com/
326+
valid: false
327+
- description: should throw an exception if username and password provided (MONGODB-AWS)
328+
implies default mechanism)
329+
uri: mongodb://user@pass:localhost.com/
330+
valid: false
331+
- description: should throw an exception if AWS_SESSION_TOKEN provided (MONGODB-AWS)
332+
implies default mechanism)
333+
uri: mongodb://localhost/?authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:token
334+
valid: false
323335
- description: should recognise the mechanism with test environment (MONGODB-OIDC)
324336
uri: mongodb://localhost/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:test
325337
valid: true

0 commit comments

Comments
 (0)