...

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

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

     1description: "Non-Mongos server in sharded cluster"
     2
     3uri: "mongodb://a,b"
     4
     5phases: [
     6
     7    {
     8        responses: [
     9
    10                ["a:27017", {
    11
    12                    ok: 1,
    13                    helloOk: true,
    14                    isWritablePrimary: true,
    15                    msg: "isdbgrid",
    16                    minWireVersion: 0,
    17                    maxWireVersion: 6
    18                }],
    19
    20                ["b:27017", {
    21
    22                    ok: 1,
    23                    helloOk: true,
    24                    isWritablePrimary: true,
    25                    hosts: ["b:27017"],
    26                    setName: "rs",
    27                    minWireVersion: 0,
    28                    maxWireVersion: 6
    29                }]
    30        ],
    31
    32        outcome: {
    33
    34            servers: {
    35
    36                "a:27017": {
    37
    38                    type: "Mongos",
    39                    setName:
    40                }
    41            },
    42            topologyType: "Sharded",
    43            logicalSessionTimeoutMinutes: null,
    44            setName:
    45        }
    46    }
    47]

View as plain text