...

Text file src/go.mongodb.org/mongo-driver/testdata/connection-string/valid-options.yml

Documentation: go.mongodb.org/mongo-driver/testdata/connection-string

     1tests:
     2    -
     3        description: "Option names are normalized to lowercase"
     4        uri: "mongodb://alice:secret@example.com/admin?AUTHMechanism=MONGODB-CR"
     5        valid: true
     6        warning: false
     7        hosts:
     8            -
     9                type: "hostname"
    10                host: "example.com"
    11                port: ~
    12        auth:
    13            username: "alice"
    14            password: "secret"
    15            db: "admin"
    16        options:
    17            authmechanism: "MONGODB-CR"

View as plain text