[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:
Depends
depends on CDRIVER-2291 Test Driver Wire Version Overlap logic Closed
depends on CSHARP-2040 Test Driver Wire Version Overlap logic Closed
depends on GODRIVER-80 Test Driver Wire Version Overlap logic Closed
depends on JAVA-2606 Test Driver Wire Version Overlap logic Closed
depends on NODE-1137 Test Driver Wire Version Overlap logic Closed
depends on PYTHON-1361 Test Driver Wire Version Overlap logic Closed
depends on RUBY-1243 Test Driver Wire Version Overlap logic Closed
depends on CXX-1434 Test Driver Wire Version Overlap logic Closed
depends on PHPC-1013 Test Driver Wire Version Overlap logic Closed
Related
Driver Compliance:
Key Status/Resolution FixVersion
PYTHON-1361 Fixed 3.6
NODE-1137 Fixed 3.1.0
SCALA-340 Works as Designed
CSHARP-2040 Fixed 2.10.1
PERL-806 Fixed 2.1.0
RUBY-1243 Fixed 2.5.1
JAVA-2606 Fixed 3.6.0
CXX-1434 Done
PHPC-1013 Fixed 1.4.0-RC1, 1.4.0
GODRIVER-80 Fixed 0.0.1
CDRIVER-2291 Fixed 1.9.0

 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.

Generated at Thu Feb 08 08:21:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.