[CDRIVER-3363] SSL options are not added to test URI Created: 06/Sep/19  Updated: 09/Feb/23

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

Type: Bug Priority: Major - P3
Reporter: Clyde Bazile III (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 18.04


Epic Link: CDRIVER-2733

 Description   

If a test URI is set with our environment variable MONGOC_TEST_URI no SSL options will be added. But If we add ssl=true to the test URI we get the error:

2019/09/06 09:50:31.0769: [ 7903]:  WARNING:       mongoc: Error parsing URI: 'Invalid host string in URI'

To reproduce, (auth may not be needed):

1. spin up a cluster with auth and SSL enabled
2. export MONGOC_TEST_URI="mongodb://user:password@localhost:27017,localhost:27018/?ssl=true"
OR
export MONGOC_TEST_URI="mongodb://localhost:27017,localhost:27018/"
3. run all transactions test. (transactions test requires a sharded cluster, auth and SSL)


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