...

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

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

     1description: "Replica set case normalization"
     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"],
    17                    passives: ["B:27017"],
    18                    arbiters: ["C:27017"],
    19                    minWireVersion: 0,
    20                    maxWireVersion: 6
    21                }]
    22        ],
    23
    24        outcome: {
    25
    26            servers: {
    27
    28                "a:27017": {
    29
    30                    type: "RSPrimary",
    31                    setName: "rs"
    32                },
    33
    34                "b:27017": {
    35
    36                    type: "Unknown",
    37                    setName:
    38                },
    39
    40                "c:27017": {
    41
    42                    type: "Unknown",
    43                    setName:
    44                }
    45
    46            },
    47            topologyType: "ReplicaSetWithPrimary",
    48            logicalSessionTimeoutMinutes: null,
    49            setName: "rs"
    50        }
    51    }
    52]

View as plain text