[CDRIVER-4046] Run single threaded DNS seedlist tests containing credentials Created: 29/Jun/21  Updated: 15/Apr/22

Status: Backlog
Project: C Driver
Component/s: tests
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CDRIVER-4107

 Description   

Background & Motivation
The Initial DNS Seedlist Discovery specification tests that contain credentials are skipped for single-threaded tests. They test connecting to these URIs:

mongodb+srv://auser:apass@test1.test.build.10gen.cc/?replicaSet=repl0
mongodb+srv://b*b%40f3tt%3D:%244to%40L8%3DMC@test3.test.build.10gen.cc/mydb%3F?replicaSet=repl0

Currently, the single-threaded tests that expect the DNS resolution to succeed require authentication to succeed. This is because single-threaded monitoring connections are authenticated (since they are also used for application-use). The multi-threaded test cases are OK, because the background monitoring connections do not undergo authentication.

But, by skipping initial seedlist DNS tests containing credentials on single-threaded we do lose a little valuable test coverage. Single-threaded DNS resolution and SRV polling behaves slightly differently from multi-threaded.

Scope
TBD, but one possible solution is to create/drop the user for the duration of the test.


Generated at Wed Feb 07 21:19:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.