...

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

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

     1description: "Replica set member and an unknown server"
     2
     3uri: "mongodb://a,b/?replicaSet=rs"
     4
     5phases: [
     6    {
     7        responses: [
     8                ["a:27017", {
     9                    ok: 1,
    10                    helloOk: true,
    11                    isWritablePrimary: true,
    12                    setName: "rs",
    13                    hosts: ["a:27017", "b:27017"],
    14                    minWireVersion: 0,
    15                    maxWireVersion: 6
    16                }],
    17        ],
    18        outcome: {
    19            servers: {
    20                "a:27017": {
    21                    type: "RSPrimary",
    22                    setName: "rs"
    23                },
    24                "b:27017": {
    25                    type: "Unknown",
    26                }
    27            },
    28            topologyType: "ReplicaSetWithPrimary",
    29            setName: "rs",
    30            logicalSessionTimeoutMinutes: null,
    31            compatible: true
    32        }
    33    }
    34]

View as plain text