...

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

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

     1{
     2  "description": "Discover secondary with replicaSet URI option",
     3  "uri": "mongodb://b/?replicaSet=rs",
     4  "phases": [
     5    {
     6      "responses": [
     7        [
     8          "b:27017",
     9          {
    10            "ok": 1,
    11            "helloOk": true,
    12            "isWritablePrimary": false,
    13            "secondary": true,
    14            "setName": "rs",
    15            "hosts": [
    16              "a:27017",
    17              "b:27017"
    18            ],
    19            "minWireVersion": 0,
    20            "maxWireVersion": 6
    21          }
    22        ]
    23      ],
    24      "outcome": {
    25        "servers": {
    26          "a:27017": {
    27            "type": "Unknown",
    28            "setName": null
    29          },
    30          "b:27017": {
    31            "type": "RSSecondary",
    32            "setName": "rs"
    33          }
    34        },
    35        "topologyType": "ReplicaSetNoPrimary",
    36        "logicalSessionTimeoutMinutes": null,
    37        "setName": "rs"
    38      }
    39    }
    40  ]
    41}

View as plain text