...
1{
2 "description": "Primary changes setName",
3 "uri": "mongodb://a/?replicaSet=rs",
4 "phases": [
5 {
6 "responses": [
7 [
8 "a:27017",
9 {
10 "ok": 1,
11 "helloOk": true,
12 "isWritablePrimary": true,
13 "hosts": [
14 "a:27017"
15 ],
16 "setName": "rs",
17 "minWireVersion": 0,
18 "maxWireVersion": 6
19 }
20 ]
21 ],
22 "outcome": {
23 "servers": {
24 "a:27017": {
25 "type": "RSPrimary",
26 "setName": "rs"
27 }
28 },
29 "topologyType": "ReplicaSetWithPrimary",
30 "logicalSessionTimeoutMinutes": null,
31 "setName": "rs"
32 }
33 },
34 {
35 "responses": [
36 [
37 "a:27017",
38 {
39 "ok": 1,
40 "helloOk": true,
41 "isWritablePrimary": true,
42 "hosts": [
43 "a:27017"
44 ],
45 "setName": "wrong",
46 "minWireVersion": 0,
47 "maxWireVersion": 6
48 }
49 ]
50 ],
51 "outcome": {
52 "servers": {},
53 "topologyType": "ReplicaSetNoPrimary",
54 "logicalSessionTimeoutMinutes": null,
55 "setName": "rs"
56 }
57 }
58 ]
59}
View as plain text