Skip to content

Commit bbff9ff

Browse files
committed
Add new SDAM test, stepdown_change_set_name.
1 parent 728c17f commit bbff9ff

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"description": "Primary becomes a secondary with wrong setName",
3+
"phases": [
4+
{
5+
"outcome": {
6+
"servers": {
7+
"a:27017": {
8+
"setName": "rs",
9+
"type": "RSPrimary"
10+
}
11+
},
12+
"setName": "rs",
13+
"topologyType": "ReplicaSetWithPrimary"
14+
},
15+
"responses": [
16+
[
17+
"a:27017",
18+
{
19+
"hosts": [
20+
"a:27017"
21+
],
22+
"ismaster": true,
23+
"ok": 1,
24+
"setName": "rs"
25+
}
26+
]
27+
]
28+
},
29+
{
30+
"outcome": {
31+
"servers": {},
32+
"setName": "rs",
33+
"topologyType": "ReplicaSetNoPrimary"
34+
},
35+
"responses": [
36+
[
37+
"a:27017",
38+
{
39+
"hosts": [
40+
"a:27017"
41+
],
42+
"ismaster": false,
43+
"ok": 1,
44+
"secondary": true,
45+
"setName": "wrong"
46+
}
47+
]
48+
]
49+
}
50+
],
51+
"uri": "mongodb://a/?replicaSet=rs"
52+
}

0 commit comments

Comments
 (0)