...

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

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

     1{
     2  "description": "Direct connection with replicaSet URI option",
     3  "uri": "mongodb://a/?replicaSet=rs&directConnection=true",
     4  "phases": [
     5    {
     6      "responses": [
     7        [
     8          "a:27017",
     9          {
    10            "ok": 1,
    11            "helloOk": true,
    12            "isWritablePrimary": true,
    13            "setName": "rs",
    14            "minWireVersion": 0,
    15            "maxWireVersion": 6
    16          }
    17        ]
    18      ],
    19      "outcome": {
    20        "servers": {
    21          "a:27017": {
    22            "type": "RSPrimary",
    23            "setName": "rs"
    24          }
    25        },
    26        "topologyType": "Single",
    27        "logicalSessionTimeoutMinutes": null,
    28        "setName": "rs"
    29      }
    30    }
    31  ]
    32}

View as plain text