...

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

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

     1description: "Discover hidden with replicaSet URI option"
     2
     3uri: "mongodb://a/?replicaSet=rs"
     4
     5phases: [
     6
     7    {
     8        responses: [
     9
    10                ["a:27017", {
    11
    12                    ok: 1,
    13                    helloOk: true,
    14                    isWritablePrimary: false,
    15                    secondary: true,
    16                    hidden: true,
    17                    hosts: ["c:27017", "d:27017"],
    18                    setName: "rs",
    19                    minWireVersion: 0,
    20                    maxWireVersion: 6
    21                }],
    22        ],
    23
    24        outcome: {
    25
    26            servers: {
    27
    28                "a:27017": {
    29
    30                    type: "RSOther",
    31                    setName: "rs"
    32                },
    33
    34                "c:27017": {
    35
    36                    type: "Unknown",
    37                    setName: 
    38                },
    39
    40                "d:27017": {
    41
    42                    type: "Unknown",
    43                    setName: 
    44                }
    45            },
    46            topologyType: "ReplicaSetNoPrimary",
    47            logicalSessionTimeoutMinutes: null,
    48            setName: "rs"
    49        }
    50    }
    51]

View as plain text