...

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

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

     1description: "Monitoring a topology that is a replica set with no primary connected"
     2uri: "mongodb://a,b"
     3phases:
     4  -
     5    responses:
     6      -
     7        - "a:27017"
     8        -
     9          ok: 1
    10          helloOk: true
    11          isWritablePrimary: false
    12          secondary: true
    13          setName: "rs"
    14          setVersion: 1
    15          primary: "b:27017"
    16          hosts:
    17            - "a:27017"
    18            - "b:27017"
    19          minWireVersion: 0
    20          maxWireVersion: 6
    21    outcome:
    22      events:
    23        -
    24          topology_opening_event:
    25            topologyId: "42"
    26        -
    27          topology_description_changed_event:
    28            topologyId: "42"
    29            previousDescription:
    30              topologyType: "Unknown"
    31              servers: []
    32            newDescription:
    33              topologyType: "Unknown"
    34              servers:
    35                -
    36                  address: "a:27017"
    37                  arbiters: []
    38                  hosts: []
    39                  passives: []
    40                  type: "Unknown"
    41                -
    42                  address: "b:27017"
    43                  arbiters: []
    44                  hosts: []
    45                  passives: []
    46                  type: "Unknown"
    47        -
    48          server_opening_event:
    49            topologyId: "42"
    50            address: "a:27017"
    51        -
    52          server_opening_event:
    53            topologyId: "42"
    54            address: "b:27017"
    55        -
    56          server_description_changed_event:
    57            topologyId: "42"
    58            address: "a:27017"
    59            previousDescription:
    60              address: "a:27017"
    61              arbiters: []
    62              hosts: []
    63              passives: []
    64              type: "Unknown"
    65            newDescription:
    66              address: "a:27017"
    67              arbiters: []
    68              hosts:
    69                - "a:27017"
    70                - "b:27017"
    71              passives: []
    72              primary: "b:27017"
    73              setName: "rs"
    74              type: "RSSecondary"
    75        -
    76          topology_description_changed_event:
    77            topologyId: "42"
    78            previousDescription:
    79              topologyType: "Unknown"
    80              servers:
    81                -
    82                  address: "a:27017"
    83                  arbiters: []
    84                  hosts: []
    85                  passives: []
    86                  type: "Unknown"
    87                -
    88                  address: "b:27017"
    89                  arbiters: []
    90                  hosts: []
    91                  passives: []
    92                  type: "Unknown"
    93            newDescription:
    94              topologyType: "ReplicaSetNoPrimary"
    95              setName: "rs"
    96              servers:
    97                -
    98                  address: "a:27017"
    99                  arbiters: []
   100                  hosts:
   101                    - "a:27017"
   102                    - "b:27017"
   103                  passives: []
   104                  primary: "b:27017"
   105                  setName: "rs"
   106                  type: "RSSecondary"
   107                -
   108                  address: "b:27017"
   109                  arbiters: []
   110                  hosts: []
   111                  passives: []
   112                  type: "PossiblePrimary"
   113

View as plain text