...

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

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

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

View as plain text