File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 351
351
"valid" : true ,
352
352
"credential" : null
353
353
},
354
+ {
355
+ "description" : " authSource without username doesn't create credential" ,
356
+ "uri" : " mongodb://localhost/?authSource=foo" ,
357
+ "valid" : true ,
358
+ "credential" : null
359
+ },
354
360
{
355
361
"description" : " should throw an exception if no username provided (userinfo implies default mechanism)" ,
356
362
"uri" : " mongodb://@localhost.com/" ,
362
368
"valid" : false
363
369
}
364
370
]
365
- }
371
+ }
Original file line number Diff line number Diff line change @@ -287,6 +287,11 @@ tests:
287
287
uri : " mongodb://localhost/foo"
288
288
valid : true
289
289
credential : ~
290
+ -
291
+ description : " authSource without username doesn't create credential"
292
+ uri : " mongodb://localhost/?authSource=foo"
293
+ valid : true
294
+ credential : ~
290
295
-
291
296
description : " should throw an exception if no username provided (userinfo implies default mechanism)"
292
297
uri : " mongodb://@localhost.com/"
You can’t perform that action at this time.
0 commit comments