Skip to content

Commit 349827b

Browse files
committed
test: fix tests
1 parent 22caa48 commit 349827b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,12 +442,12 @@
442442
},
443443
{
444444
"description": "should throw an exception if username provided (MONGODB-AWS)",
445-
"uri": "mongodb://[email protected]/",
445+
"uri": "mongodb://[email protected]/?authMechanism=MONGODB-AWS",
446446
"valid": false
447447
},
448448
{
449449
"description": "should throw an exception if username and password provided (MONGODB-AWS)",
450-
"uri": "mongodb://user:[email protected]/",
450+
"uri": "mongodb://user:[email protected]/?authMechanism=MONGODB-AWS",
451451
"valid": false
452452
},
453453
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ tests:
321321
mechanism_properties:
322322
AWS_SESSION_TOKEN: token!@#$%^&*()_+
323323
- description: should throw an exception if username provided (MONGODB-AWS)
324-
uri: mongodb://[email protected]/
324+
uri: mongodb://[email protected]/?authMechanism=MONGODB-AWS
325325
valid: false
326326
- description: should throw an exception if username and password provided (MONGODB-AWS)
327-
uri: mongodb://user:[email protected]/
327+
uri: mongodb://user:[email protected]/?authMechanism=MONGODB-AWS
328328
valid: false
329329
- description: should throw an exception if AWS_SESSION_TOKEN provided (MONGODB-AWS)
330330
uri: mongodb://localhost/?authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:token

0 commit comments

Comments
 (0)