...

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

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

     1{
     2  "description": "Handle a not-ok isWritablePrimary response",
     3  "uri": "mongodb://a",
     4  "phases": [
     5    {
     6      "responses": [
     7        [
     8          "a:27017",
     9          {
    10            "ok": 1,
    11            "helloOk": true,
    12            "isWritablePrimary": true,
    13            "minWireVersion": 0,
    14            "maxWireVersion": 6
    15          }
    16        ],
    17        [
    18          "a:27017",
    19          {
    20            "ok": 0,
    21            "helloOk": true,
    22            "isWritablePrimary": true,
    23            "minWireVersion": 0,
    24            "maxWireVersion": 6
    25          }
    26        ]
    27      ],
    28      "outcome": {
    29        "servers": {
    30          "a:27017": {
    31            "type": "Unknown",
    32            "setName": null
    33          }
    34        },
    35        "topologyType": "Single",
    36        "logicalSessionTimeoutMinutes": null,
    37        "setName": null
    38      }
    39    }
    40  ]
    41}

View as plain text