...

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

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

     1description: "Replica set mixed 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                    me: "A:27017",
    17                    hosts: ["A:27017"],
    18                    passives: ["B:27017"],
    19                    arbiters: ["C:27017"],
    20                    minWireVersion: 0,
    21                    maxWireVersion: 6
    22                }]
    23        ],
    24
    25        outcome: {
    26
    27            servers: {
    28
    29                "a:27017": {
    30
    31                    type: "RSPrimary",
    32                    setName: "rs"
    33                },
    34
    35                "b:27017": {
    36
    37                    type: "Unknown",
    38                    setName:
    39                },
    40
    41                "c:27017": {
    42
    43                    type: "Unknown",
    44                    setName:
    45                }
    46
    47            },
    48
    49            topologyType: "ReplicaSetWithPrimary",
    50            logicalSessionTimeoutMinutes: null,
    51            setName: "rs"
    52        }
    53    },
    54    {
    55        responses: [
    56
    57                ["b:27017", {
    58
    59                    ok: 1,
    60                    helloOk: true,
    61                    isWritablePrimary: false,
    62                    secondary: true,
    63                    setName: "rs",
    64                    me: "B:27017",
    65                    hosts: ["A:27017"],
    66                    passives: ["B:27017"],
    67                    arbiters: ["C:27017"],
    68                    minWireVersion: 0,
    69                    maxWireVersion: 6
    70                }]
    71        ],
    72
    73        outcome: {
    74
    75            servers: {
    76
    77                "a:27017": {
    78
    79                    type: "RSPrimary",
    80                    setName: "rs"
    81                },
    82
    83                "b:27017": {
    84
    85                    type: "RSSecondary",
    86                    setName: "rs"
    87                },
    88
    89                "c:27017": {
    90
    91                    type: "Unknown",
    92                    setName:
    93                }
    94
    95            },
    96
    97            topologyType: "ReplicaSetWithPrimary",
    98            logicalSessionTimeoutMinutes: null,
    99            setName: "rs"
   100        }
   101    }
   102]

View as plain text