bson/testdata/uri-options/auth-options.yml
2025-03-17 20:58:26 +01:00

25 lines
881 B
YAML

tests:
-
description: "Valid auth options are parsed correctly (GSSAPI)"
uri: "mongodb://foo:bar@example.com/?authMechanism=GSSAPI&authMechanismProperties=SERVICE_NAME:other,CANONICALIZE_HOST_NAME:true&authSource=$external"
valid: true
warning: false
hosts: ~
auth: ~
options:
authMechanism: "GSSAPI"
authMechanismProperties:
SERVICE_NAME: "other"
CANONICALIZE_HOST_NAME: true
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: ~
auth: ~
options:
authMechanism: "SCRAM-SHA-1"
authSource: "authSourceDB"