Add new SDAM test, stepdown_change_set_name.
This commit is contained in:
parent
728c17f1ad
commit
bbff9ff015
@ -0,0 +1,52 @@
|
||||
{
|
||||
"description": "Primary becomes a secondary with wrong setName",
|
||||
"phases": [
|
||||
{
|
||||
"outcome": {
|
||||
"servers": {
|
||||
"a:27017": {
|
||||
"setName": "rs",
|
||||
"type": "RSPrimary"
|
||||
}
|
||||
},
|
||||
"setName": "rs",
|
||||
"topologyType": "ReplicaSetWithPrimary"
|
||||
},
|
||||
"responses": [
|
||||
[
|
||||
"a:27017",
|
||||
{
|
||||
"hosts": [
|
||||
"a:27017"
|
||||
],
|
||||
"ismaster": true,
|
||||
"ok": 1,
|
||||
"setName": "rs"
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"outcome": {
|
||||
"servers": {},
|
||||
"setName": "rs",
|
||||
"topologyType": "ReplicaSetNoPrimary"
|
||||
},
|
||||
"responses": [
|
||||
[
|
||||
"a:27017",
|
||||
{
|
||||
"hosts": [
|
||||
"a:27017"
|
||||
],
|
||||
"ismaster": false,
|
||||
"ok": 1,
|
||||
"secondary": true,
|
||||
"setName": "wrong"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
],
|
||||
"uri": "mongodb://a/?replicaSet=rs"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user