[JAVA-2606] Test Driver Wire Version Overlap logic Created: 18/Sep/17  Updated: 29/Oct/23  Resolved: 18/Sep/17

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: None
Fix Version/s: 3.6.0

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-408 Test Driver Wire Version Overlap logic Closed

 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 Jeffrey Yemin [ 18/Sep/17 ]

Fixed in https://github.com/mongodb/mongo-java-driver/commit/ff18c68711c5f46f8f4e484e29ad94515da67eb0

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