...
1{
2 "description": "Primary becomes a secondary with wrong 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": false,
42 "secondary": true,
43 "hosts": [
44 "a:27017"
45 ],
46 "setName": "wrong",
47 "minWireVersion": 0,
48 "maxWireVersion": 6
49 }
50 ]
51 ],
52 "outcome": {
53 "servers": {},
54 "topologyType": "ReplicaSetNoPrimary",
55 "logicalSessionTimeoutMinutes": null,
56 "setName": "rs"
57 }
58 }
59 ]
60}
View as plain text