...

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

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

     1description: "Discover RSOther 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                    secondary: false,
    16                    hosts: ["c:27017", "d:27017"],
    17                    setName: "rs",
    18                    minWireVersion: 0,
    19                    maxWireVersion: 6
    20                }]
    21        ],
    22
    23        outcome: {
    24
    25            servers: {
    26
    27                "b:27017": {
    28
    29                    type: "RSOther",
    30                    setName: "rs"
    31                },
    32
    33                "c:27017": {
    34
    35                    type: "Unknown",
    36                    setName: 
    37                },
    38
    39                "d:27017": {
    40
    41                    type: "Unknown",
    42                    setName: 
    43                }
    44            },
    45            topologyType: "ReplicaSetNoPrimary",
    46            logicalSessionTimeoutMinutes: null,
    47            setName: "rs"
    48        }
    49    }
    50]

View as plain text