...

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

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

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

View as plain text