Skip to content

Commit 254c3ed

Browse files
committed
Add PYTHON-5445 patch
1 parent 04d98e5 commit 254c3ed

File tree

2 files changed

+26
-15
lines changed

2 files changed

+26
-15
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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",

test/auth/legacy/connection-string.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -440,21 +440,6 @@
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",

0 commit comments

Comments
 (0)