Sync "secondary with mismatched me" spec test

This commit is contained in:
A. Jesse Jiryu Davis 2017-08-04 09:48:00 -04:00
parent ca57ecea4a
commit 13364a28fb

View File

@ -0,0 +1,62 @@
{
"description": "Secondary with mismatched 'me' tells us who the primary is",
"uri": "mongodb://a/?replicaSet=rs",
"phases": [
{
"responses": [
[
"a:27017",
{
"ok": 1,
"ismaster": false,
"secondary": true,
"me": "c:27017",
"hosts": [
"b:27017"
],
"setName": "rs",
"primary": "b:27017"
}
]
],
"outcome": {
"servers": {
"b:27017": {
"type": "PossiblePrimary",
"setName": null
}
},
"topologyType": "ReplicaSetNoPrimary",
"logicalSessionTimeoutMinutes": null,
"setName": "rs"
}
},
{
"responses": [
[
"b:27017",
{
"ok": 1,
"ismaster": true,
"me": "b:27017",
"hosts": [
"b:27017"
],
"setName": "rs"
}
]
],
"outcome": {
"servers": {
"b:27017": {
"type": "RSPrimary",
"setName": "rs"
}
},
"topologyType": "ReplicaSetWithPrimary",
"logicalSessionTimeoutMinutes": null,
"setName": "rs"
}
}
]
}