Skip to content

Commit 4b8c7d4

Browse files
committed
test: sync
1 parent b842edc commit 4b8c7d4

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -441,17 +441,17 @@
441441
}
442442
},
443443
{
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/",
446446
"valid": false
447447
},
448448
{
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/",
451451
"valid": false
452452
},
453453
{
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)",
455455
"uri": "mongodb://localhost/?authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:token",
456456
"valid": false
457457
},

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,12 @@ tests:
321321
mechanism_properties:
322322
AWS_SESSION_TOKEN: token!@#$%^&*()_+
323323
- description: should throw an exception if username provided (MONGODB-AWS)
324-
implies default mechanism)
325-
uri: mongodb://user:localhost.com/
324+
uri: mongodb://[email protected]/
326325
valid: false
327326
- 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]/
330328
valid: false
331329
- description: should throw an exception if AWS_SESSION_TOKEN provided (MONGODB-AWS)
332-
implies default mechanism)
333330
uri: mongodb://localhost/?authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:token
334331
valid: false
335332
- description: should recognise the mechanism with test environment (MONGODB-OIDC)

0 commit comments

Comments
 (0)