...

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

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

     1{
     2  "description": "Standalone with default maxWireVersion of 0 is upgraded to one with maxWireVersion 6",
     3  "uri": "mongodb://a",
     4  "phases": [
     5    {
     6      "responses": [
     7        [
     8          "a:27017",
     9          {
    10            "ok": 1,
    11            "helloOk": true,
    12            "isWritablePrimary": true
    13          }
    14        ]
    15      ],
    16      "outcome": {
    17        "servers": {
    18          "a:27017": {
    19            "type": "Standalone",
    20            "setName": null
    21          }
    22        },
    23        "topologyType": "Single",
    24        "logicalSessionTimeoutMinutes": null,
    25        "setName": null,
    26        "compatible": false
    27      }
    28    },
    29    {
    30      "responses": [
    31        [
    32          "a:27017",
    33          {
    34            "ok": 1,
    35            "helloOk": true,
    36            "isWritablePrimary": true,
    37            "minWireVersion": 0,
    38            "maxWireVersion": 6
    39          }
    40        ]
    41      ],
    42      "outcome": {
    43        "servers": {
    44          "a:27017": {
    45            "type": "Standalone",
    46            "setName": null
    47          }
    48        },
    49        "topologyType": "Single",
    50        "logicalSessionTimeoutMinutes": null,
    51        "setName": null,
    52        "compatible": true
    53      }
    54    }
    55  ]
    56}

View as plain text