...

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

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

     1description: "Replica set member with large minWireVersion"
     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                ["b:27017", {
    18                    ok: 1,
    19                    helloOk: true,
    20                    isWritablePrimary: false,
    21                    secondary: true,
    22                    setName: "rs",
    23                    hosts: ["a:27017", "b:27017"],
    24                    minWireVersion: 999,
    25                    maxWireVersion: 1000
    26                }]
    27        ],
    28        outcome: {
    29            servers: {
    30                "a:27017": {
    31                    type: "RSPrimary",
    32                    setName: "rs"
    33                },
    34                "b:27017": {
    35                    type: "RSSecondary",
    36                    setName: "rs"
    37                }
    38            },
    39            topologyType: "ReplicaSetWithPrimary",
    40            setName: "rs",
    41            logicalSessionTimeoutMinutes: null,
    42            compatible: false
    43        }
    44    }
    45]

View as plain text