File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 441
441
}
442
442
},
443
443
{
444
- "description" : " should throw an exception if username provided (MONGODB-AWS) implies default mechanism) " ,
445
- "uri" : " mongodb://user: localhost.com/" ,
444
+ "description" : " should throw an exception if username provided (MONGODB-AWS)" ,
445
+ "uri" : " mongodb://user@ localhost.com/" ,
446
446
"valid" : false
447
447
},
448
448
{
449
- "description" : " should throw an exception if username and password provided (MONGODB-AWS) implies default mechanism) " ,
450
- "uri" : " mongodb://user@pass: localhost.com/" ,
449
+ "description" : " should throw an exception if username and password provided (MONGODB-AWS)" ,
450
+ "uri" : " mongodb://user:pass@ localhost.com/" ,
451
451
"valid" : false
452
452
},
453
453
{
454
- "description" : " should throw an exception if AWS_SESSION_TOKEN provided (MONGODB-AWS) implies default mechanism) " ,
454
+ "description" : " should throw an exception if AWS_SESSION_TOKEN provided (MONGODB-AWS)" ,
455
455
"uri" : " mongodb://localhost/?authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:token" ,
456
456
"valid" : false
457
457
},
Original file line number Diff line number Diff line change @@ -321,15 +321,12 @@ tests:
321
321
mechanism_properties :
322
322
AWS_SESSION_TOKEN : token!@#$%^&*()_+
323
323
- description : should throw an exception if username provided (MONGODB-AWS)
324
- implies default mechanism)
325
- uri : mongodb://user:localhost.com/
324
+
326
325
valid : false
327
326
- description : should throw an exception if username and password provided (MONGODB-AWS)
328
- implies default mechanism)
329
- uri : mongodb://user@pass:localhost.com/
327
+ uri :
mongodb://user:[email protected] /
330
328
valid : false
331
329
- description : should throw an exception if AWS_SESSION_TOKEN provided (MONGODB-AWS)
332
- implies default mechanism)
333
330
uri : mongodb://localhost/?authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:token
334
331
valid : false
335
332
- description : should recognise the mechanism with test environment (MONGODB-OIDC)
You can’t perform that action at this time.
0 commit comments