[DRIVERS-408] Test Driver Wire Version Overlap logic Created: 22/Aug/17 Updated: 28/Oct/23 Resolved: 12/Aug/20 |
|
| Status: | Closed |
| Project: | Drivers |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Driver Compliance: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Re-sync YAML tests from the Server Discovery And Monitoring Spec. There are new tests called "too_old.yml" and "too_new.yml" for all three topology types, these tests prove that the driver correctly implements wire version overlap logic. The "outcome" object in these tests has a field "compatible": update your test harness to check that if "compatible" is false, then server selection throws an error, and check that if "compatible" is absent or true, that server selection does not throw an error. All existing YAML tests are updated to now include minWireVersion and maxWireVersion in all isMaster responses. |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 24/Aug/17 ] |
|
Drivers shouldn't implement this until we do SPEC-917. I think we can add the actual error messages to the tests, and then drivers can test more rigorously. |