Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
corrected a problem with sdam monitoring initial previous description.
- Loading branch information
1 parent
2600b1c
commit 9412480
Showing
8 changed files
with
197 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
149 changes: 149 additions & 0 deletions
149
src/MongoDB.Driver.Core.Tests/Specifications/sdam-monitoring/tests/required_replica_set.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
{ | ||
"description": "Monitoring a topology that is required to be a replica set", | ||
"phases": [ | ||
{ | ||
"outcome": { | ||
"events": [ | ||
{ | ||
"topology_opening_event": { | ||
"topologyId": "42" | ||
} | ||
}, | ||
{ | ||
"topology_description_changed_event": { | ||
"newDescription": { | ||
"servers": [ | ||
{ | ||
"address": "a:27017", | ||
"arbiters": [ ], | ||
"hosts": [ ], | ||
"passives": [ ], | ||
"type": "Unknown" | ||
}, | ||
{ | ||
"address": "b:27017", | ||
"arbiters": [ ], | ||
"hosts": [ ], | ||
"passives": [ ], | ||
"type": "Unknown" | ||
} | ||
], | ||
"topologyType": "ReplicaSetNoPrimary" | ||
}, | ||
"previousDescription": { | ||
"servers": [ ], | ||
"topologyType": "Unknown" | ||
}, | ||
"topologyId": "42" | ||
} | ||
}, | ||
{ | ||
"server_opening_event": { | ||
"address": "a:27017", | ||
"topologyId": "42" | ||
} | ||
}, | ||
{ | ||
"server_opening_event": { | ||
"address": "b:27017", | ||
"topologyId": "42" | ||
} | ||
}, | ||
{ | ||
"server_description_changed_event": { | ||
"address": "a:27017", | ||
"newDescription": { | ||
"address": "a:27017", | ||
"arbiters": [ ], | ||
"hosts": [ | ||
"a:27017", | ||
"b:27017" | ||
], | ||
"passives": [ ], | ||
"primary": "a:27017", | ||
"setName": "rs", | ||
"type": "RSPrimary" | ||
}, | ||
"previousDescription": { | ||
"address": "a:27017", | ||
"arbiters": [ ], | ||
"hosts": [ ], | ||
"passives": [ ], | ||
"type": "Unknown" | ||
}, | ||
"topologyId": "42" | ||
} | ||
}, | ||
{ | ||
"topology_description_changed_event": { | ||
"newDescription": { | ||
"servers": [ | ||
{ | ||
"address": "a:27017", | ||
"arbiters": [ ], | ||
"hosts": [ | ||
"a:27017", | ||
"b:27017" | ||
], | ||
"passives": [ ], | ||
"primary": "a:27017", | ||
"setName": "rs", | ||
"type": "RSPrimary" | ||
}, | ||
{ | ||
"address": "b:27017", | ||
"arbiters": [ ], | ||
"hosts": [ ], | ||
"passives": [ ], | ||
"type": "Unknown" | ||
} | ||
], | ||
"setName": "rs", | ||
"topologyType": "ReplicaSetWithPrimary" | ||
}, | ||
"previousDescription": { | ||
"servers": [ | ||
{ | ||
"address": "a:27017", | ||
"arbiters": [ ], | ||
"hosts": [ ], | ||
"passives": [ ], | ||
"type": "Unknown" | ||
}, | ||
{ | ||
"address": "b:27017", | ||
"arbiters": [ ], | ||
"hosts": [ ], | ||
"passives": [ ], | ||
"type": "Unknown" | ||
} | ||
], | ||
"topologyType": "ReplicaSetNoPrimary" | ||
}, | ||
"topologyId": "42" | ||
} | ||
} | ||
] | ||
}, | ||
"responses": [ | ||
[ | ||
"a:27017", | ||
{ | ||
"hosts": [ | ||
"a:27017", | ||
"b:27017" | ||
], | ||
"ismaster": true, | ||
"maxWireVersion": 4, | ||
"minWireVersion": 0, | ||
"ok": 1, | ||
"primary": "a:27017", | ||
"setName": "rs", | ||
"setVersion": 1.0 | ||
} | ||
] | ||
] | ||
} | ||
], | ||
"uri": "mongodb://a,b/?replicaSet=rs" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters