...

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

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

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

View as plain text