...

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

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

     1{
     2  "description": "Replica set member and an unknown server",
     3  "uri": "mongodb://a,b/?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            "hosts": [
    15              "a:27017",
    16              "b:27017"
    17            ],
    18            "minWireVersion": 0,
    19            "maxWireVersion": 6
    20          }
    21        ]
    22      ],
    23      "outcome": {
    24        "servers": {
    25          "a:27017": {
    26            "type": "RSPrimary",
    27            "setName": "rs"
    28          },
    29          "b:27017": {
    30            "type": "Unknown"
    31          }
    32        },
    33        "topologyType": "ReplicaSetWithPrimary",
    34        "setName": "rs",
    35        "logicalSessionTimeoutMinutes": null,
    36        "compatible": true
    37      }
    38    }
    39  ]
    40}

View as plain text