...

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

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

     1description: "Secondary's host list is not authoritative"
     2
     3uri: "mongodb://a/?replicaSet=rs"
     4
     5phases: [
     6
     7    {
     8        responses: [
     9
    10                ["a:27017", {
    11
    12                    ok: 1,
    13                    helloOk: true,
    14                    isWritablePrimary: true,
    15                    setName: "rs",
    16                    hosts: ["a:27017", "b:27017"],
    17                    minWireVersion: 0,
    18                    maxWireVersion: 6
    19                }],
    20
    21                ["b:27017", {
    22
    23                    ok: 1,
    24                    helloOk: true,
    25                    isWritablePrimary: false,
    26                    secondary: true,
    27                    setName: "rs",
    28                    hosts: ["b:27017", "c:27017"],
    29                    minWireVersion: 0,
    30                    maxWireVersion: 6
    31                }]
    32        ],
    33
    34        outcome: {
    35
    36            servers: {
    37
    38                "a:27017": {
    39
    40                    type: "RSPrimary",
    41                    setName: "rs"
    42                },
    43
    44                "b:27017": {
    45
    46                    type: "RSSecondary",
    47                    setName: "rs"
    48                }
    49            },
    50            topologyType: "ReplicaSetWithPrimary",
    51            logicalSessionTimeoutMinutes: null,
    52            setName: "rs"
    53        }
    54    }
    55]

View as plain text