Skip to content

Commit 61fecca

Browse files
authored
DRIVERS-2915 Add ENVIRONMENT auth mechanism property to test URIs (mongodb#2160)
1 parent f5aeac3 commit 61fecca

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

test/connection_string/test/valid-options.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
{
4242
"description": "Colon in a key value pair",
43-
"uri": "mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster",
43+
"uri": "mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster,ENVIRONMENT:azure",
4444
"valid": true,
4545
"warning": false,
4646
"hosts": [
@@ -53,9 +53,10 @@
5353
"auth": null,
5454
"options": {
5555
"authmechanismProperties": {
56-
"TOKEN_RESOURCE": "mongodb://test-cluster"
56+
"TOKEN_RESOURCE": "mongodb://test-cluster",
57+
"ENVIRONMENT": "azure"
5758
}
5859
}
5960
}
6061
]
61-
}
62+
}

test/connection_string/test/valid-warnings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
},
9797
{
9898
"description": "Comma in a key value pair causes a warning",
99-
"uri": "mongodb://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2",
99+
"uri": "mongodb://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2,ENVIRONMENT:azure",
100100
"valid": true,
101101
"warning": true,
102102
"hosts": [
@@ -112,4 +112,4 @@
112112
}
113113
}
114114
]
115-
}
115+
}

0 commit comments

Comments
 (0)