...

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

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

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

View as plain text