DRIVERS-2915 Add ENVIRONMENT auth mechanism property to test URIs (#2160)

This commit is contained in:
Steven Silvester 2025-02-26 13:23:02 -06:00 committed by GitHub
parent f5aeac3ccc
commit 61feccacfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -40,7 +40,7 @@
},
{
"description": "Colon in a key value pair",
"uri": "mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster",
"uri": "mongodb://example.com/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://test-cluster,ENVIRONMENT:azure",
"valid": true,
"warning": false,
"hosts": [
@ -53,9 +53,10 @@
"auth": null,
"options": {
"authmechanismProperties": {
"TOKEN_RESOURCE": "mongodb://test-cluster"
"TOKEN_RESOURCE": "mongodb://test-cluster",
"ENVIRONMENT": "azure"
}
}
}
]
}
}

View File

@ -96,7 +96,7 @@
},
{
"description": "Comma in a key value pair causes a warning",
"uri": "mongodb://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2",
"uri": "mongodb://localhost?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:mongodb://host1%2Chost2,ENVIRONMENT:azure",
"valid": true,
"warning": true,
"hosts": [
@ -112,4 +112,4 @@
}
}
]
}
}