34 lines
1.0 KiB
JSON
34 lines
1.0 KiB
JSON
{
|
|
"tests": [
|
|
{
|
|
"description": "Valid auth options are parsed correctly (GSSAPI)",
|
|
"uri": "mongodb://foo:bar@example.com/?authMechanism=GSSAPI&authMechanismProperties=SERVICE_NAME:other,CANONICALIZE_HOST_NAME:forward,SERVICE_HOST:example.com&authSource=$external",
|
|
"valid": true,
|
|
"warning": false,
|
|
"hosts": null,
|
|
"auth": null,
|
|
"options": {
|
|
"authMechanism": "GSSAPI",
|
|
"authMechanismProperties": {
|
|
"SERVICE_NAME": "other",
|
|
"SERVICE_HOST": "example.com",
|
|
"CANONICALIZE_HOST_NAME": "forward"
|
|
},
|
|
"authSource": "$external"
|
|
}
|
|
},
|
|
{
|
|
"description": "Valid auth options are parsed correctly (SCRAM-SHA-1)",
|
|
"uri": "mongodb://foo:bar@example.com/?authMechanism=SCRAM-SHA-1&authSource=authSourceDB",
|
|
"valid": true,
|
|
"warning": false,
|
|
"hosts": null,
|
|
"auth": null,
|
|
"options": {
|
|
"authMechanism": "SCRAM-SHA-1",
|
|
"authSource": "authSourceDB"
|
|
}
|
|
}
|
|
]
|
|
}
|