-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Testing
-
Labels:None
-
Environment:Ubuntu 18.04
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)