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