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