DRIVERS-3128 test secondary with IPv6 literal in SDAM #1766
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add regression test for the bug identified in this comment of HELP-68823.
Motivation
Test is added to spec repo to validate other drivers handle IPv6 literals correctly. The tested scenario is:
mongodb://[::1]:27017/?replicaSet=rs
ReplicaSetNoPrimary
) and a"me":"[::1]:27017
.me
check.Testing
Tested in mongodb/mongo-rust-driver#1327.
Fails on mongodb/mongo-rust-driver@206b99e (before fix)
Passes on mongodb/mongo-rust-driver@1acffc4 (after fix).
Please complete the following before merging:
[ ] Update changelog.(Tests only)[ ] Test these changes against all server versions and topologies (including standalone, replica set, sharded(N/A. Test mocks data to SDAM)clusters, and serverless).