Skip to content

Commit 9c7946d

Browse files
author
Cloud User
committed
resyncing specs 10-13-2025
1 parent 6a796c8 commit 9c7946d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/auth/legacy/connection-string.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,21 @@
440440
}
441441
}
442442
},
443+
{
444+
"description": "should throw an exception if username provided (MONGODB-AWS)",
445+
"uri": "mongodb://user@localhost.com/?authMechanism=MONGODB-AWS",
446+
"valid": false
447+
},
448+
{
449+
"description": "should throw an exception if username and password provided (MONGODB-AWS)",
450+
"uri": "mongodb://user:pass@localhost.com/?authMechanism=MONGODB-AWS",
451+
"valid": false
452+
},
453+
{
454+
"description": "should throw an exception if AWS_SESSION_TOKEN provided (MONGODB-AWS)",
455+
"uri": "mongodb://localhost/?authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:token",
456+
"valid": false
457+
},
443458
{
444459
"description": "should recognise the mechanism with test environment (MONGODB-OIDC)",
445460
"uri": "mongodb://localhost/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:test",

0 commit comments

Comments
 (0)