...

Text file src/go.mongodb.org/mongo-driver/testdata/uri-options/auth-options.yml

Documentation: go.mongodb.org/mongo-driver/testdata/uri-options

     1tests:
     2    -
     3        description: "Valid auth options are parsed correctly (GSSAPI)"
     4        uri: "mongodb://foo:bar@example.com/?authMechanism=GSSAPI&authMechanismProperties=SERVICE_NAME:other,CANONICALIZE_HOST_NAME:true&authSource=$external"
     5        valid: true
     6        warning: false
     7        hosts: ~
     8        auth: ~
     9        options:
    10            authMechanism: "GSSAPI"
    11            authMechanismProperties:
    12                SERVICE_NAME: "other"
    13                CANONICALIZE_HOST_NAME: true
    14            authSource: "$external"
    15    -
    16        description: "Valid auth options are parsed correctly (SCRAM-SHA-1)"
    17        uri: "mongodb://foo:bar@example.com/?authMechanism=SCRAM-SHA-1&authSource=authSourceDB"
    18        valid: true
    19        warning: false
    20        hosts: ~
    21        auth: ~
    22        options:
    23            authMechanism: "SCRAM-SHA-1"
    24            authSource: "authSourceDB"

View as plain text