Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3363

SSL options are not added to test URI

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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)
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: