...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/rs/replicaset_rsnp.yml

Documentation: go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/rs

     1description: replicaSet URI option causes starting topology to be RSNP
     2
     3uri: "mongodb://a/?replicaSet=rs&directConnection=false"
     4
     5phases:
     6  # We are connecting to a standalone
     7  - responses:
     8    -
     9      - "a:27017"
    10      - ok: 1
    11        helloOk: true
    12        isWritablePrimary: true
    13        minWireVersion: 0
    14        maxWireVersion: 6
    15    outcome:
    16      # Server is removed because it's a standalone and the driver
    17      # started in RSNP topology
    18      servers: {}
    19      topologyType: "ReplicaSetNoPrimary"
    20      logicalSessionTimeoutMinutes: ~
    21      setName: "rs"

View as plain text