File tree Expand file tree Collapse file tree 2 files changed +26
-15
lines changed Expand file tree Collapse file tree 2 files changed +26
-15
lines changed Original file line number Diff line number Diff line change 1+ diff --git a/test/auth/legacy/connection-string.json b/test/auth/legacy/connection-string.json
2+ index 3a099c813..8982b61d5 100644
3+ --- a/test/auth/legacy/connection-string.json
4+ +++ b/test/auth/legacy/connection-string.json
5+ @@ -440,6 +440,21 @@
6+ }
7+ }
8+ },
9+ + {
10+ + "description": "should throw an exception if username provided (MONGODB-AWS)",
11+ + "uri": "mongodb://user@localhost.com/?authMechanism=MONGODB-AWS",
12+ + "valid": false
13+ + },
14+ + {
15+ + "description": "should throw an exception if username and password provided (MONGODB-AWS)",
16+ + "uri": "mongodb://user:pass@localhost.com/?authMechanism=MONGODB-AWS",
17+ + "valid": false
18+ + },
19+ + {
20+ + "description": "should throw an exception if AWS_SESSION_TOKEN provided (MONGODB-AWS)",
21+ + "uri": "mongodb://localhost/?authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:token",
22+ + "valid": false
23+ + },
24+ {
25+ "description": "should recognise the mechanism with test environment (MONGODB-OIDC)",
26+ "uri": "mongodb://localhost/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:test",
Original file line number Diff line number Diff line change 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- },
458443 {
459444 "description" : " should recognise the mechanism with test environment (MONGODB-OIDC)" ,
460445 "uri" : " mongodb://localhost/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:test" ,
You can’t perform that action at this time.
0 commit comments