...

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

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

     1description: "Discover ghost with directConnection URI option"
     2
     3uri: "mongodb://b/?directConnection=false"
     4
     5phases: [
     6
     7    {
     8        responses: [
     9
    10                ["b:27017", {
    11
    12                    ok: 1,
    13                    helloOk: true,
    14                    isWritablePrimary: false,
    15                    isreplicaset: true,
    16                    minWireVersion: 0,
    17                    maxWireVersion: 6
    18                }]
    19        ],
    20
    21        outcome: {
    22
    23            servers: {
    24
    25                "b:27017": {
    26
    27                    type: "RSGhost",
    28                    setName:
    29                }
    30            },
    31            topologyType: "Unknown",
    32            logicalSessionTimeoutMinutes: null,
    33            setName:
    34        }
    35    }
    36]

View as plain text