...

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

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

     1description: "Discover ghost with replicaSet URI option"
     2
     3uri: "mongodb://a,b/?replicaSet=rs"
     4
     5phases: [
     6
     7    {
     8        responses: [
     9
    10                ["b:27017", {
    11
    12                    ok: 1,
    13                    helloOk: true,
    14                    isWritablePrimary: false,
    15                    isreplicaset: true,
    16                    minWireVersion: 0,
    17                    maxWireVersion: 6
    18                }]
    19        ],
    20
    21        outcome: {
    22
    23            servers: {
    24
    25                "a:27017": {
    26
    27                    type: "Unknown",
    28                    setName:
    29                },
    30
    31                "b:27017": {
    32
    33                    type: "RSGhost",
    34                    setName:
    35                }
    36            },
    37            topologyType: "ReplicaSetNoPrimary",
    38            logicalSessionTimeoutMinutes: null,
    39            setName: "rs"
    40        }
    41    }
    42]

View as plain text