...

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

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

     1{
     2  "description": "Replica set mixed case normalization",
     3  "uri": "mongodb://A/?replicaSet=rs",
     4  "phases": [
     5    {
     6      "responses": [
     7        [
     8          "a:27017",
     9          {
    10            "ok": 1,
    11            "helloOk": true,
    12            "isWritablePrimary": true,
    13            "setName": "rs",
    14            "me": "A:27017",
    15            "hosts": [
    16              "A:27017"
    17            ],
    18            "passives": [
    19              "B:27017"
    20            ],
    21            "arbiters": [
    22              "C:27017"
    23            ],
    24            "minWireVersion": 0,
    25            "maxWireVersion": 6
    26          }
    27        ]
    28      ],
    29      "outcome": {
    30        "servers": {
    31          "a:27017": {
    32            "type": "RSPrimary",
    33            "setName": "rs"
    34          },
    35          "b:27017": {
    36            "type": "Unknown",
    37            "setName": null
    38          },
    39          "c:27017": {
    40            "type": "Unknown",
    41            "setName": null
    42          }
    43        },
    44        "topologyType": "ReplicaSetWithPrimary",
    45        "logicalSessionTimeoutMinutes": null,
    46        "setName": "rs"
    47      }
    48    },
    49    {
    50      "responses": [
    51        [
    52          "b:27017",
    53          {
    54            "ok": 1,
    55            "helloOk": true,
    56            "isWritablePrimary": false,
    57            "secondary": true,
    58            "setName": "rs",
    59            "me": "B:27017",
    60            "hosts": [
    61              "A:27017"
    62            ],
    63            "passives": [
    64              "B:27017"
    65            ],
    66            "arbiters": [
    67              "C:27017"
    68            ],
    69            "minWireVersion": 0,
    70            "maxWireVersion": 6
    71          }
    72        ]
    73      ],
    74      "outcome": {
    75        "servers": {
    76          "a:27017": {
    77            "type": "RSPrimary",
    78            "setName": "rs"
    79          },
    80          "b:27017": {
    81            "type": "RSSecondary",
    82            "setName": "rs"
    83          },
    84          "c:27017": {
    85            "type": "Unknown",
    86            "setName": null
    87          }
    88        },
    89        "topologyType": "ReplicaSetWithPrimary",
    90        "logicalSessionTimeoutMinutes": null,
    91        "setName": "rs"
    92      }
    93    }
    94  ]
    95}

View as plain text