...

Text file src/go.mongodb.org/mongo-driver/testdata/initial-dns-seedlist-discovery/replica-set/uri-with-auth.yml

Documentation: go.mongodb.org/mongo-driver/testdata/initial-dns-seedlist-discovery/replica-set

     1uri: "mongodb+srv://auser:apass@test1.test.build.10gen.cc/?replicaSet=repl0"
     2seeds:
     3    - localhost.test.build.10gen.cc:27017
     4    - localhost.test.build.10gen.cc:27018
     5hosts:
     6    - localhost:27017
     7    - localhost:27018
     8    - localhost:27019
     9options:
    10    replicaSet: repl0
    11    ssl: true
    12parsed_options:
    13    user: auser
    14    password: apass
    15# Don't run a ping for URIs that include userinfo. Ping doesn't require authentication, so missing
    16# userinfo isn't a problem, but some drivers will fail handshake on a connection if userinfo is
    17# provided but incorrect.
    18ping: false
    19comment: Should preserve auth credentials

View as plain text