Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2848

Testing framework should auto-detect the correct connection string if none is provided

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.8.0
    • Affects Version/s: None
    • Component/s: Test Coverage
    • Labels:
      None

      It's annoying to have to specify a different org.mongodb.test.uri system property every time you want to test against a replica set, especially when executing single tests in an IDE. This could be made easier by having the testing framework (if no system property is provided) interrogate the server running at localhost:27017 to determine whether it's a replica set member, and if it is then change the default URI to mongodb://localhost/?replicaSet=<setName from isMaster response>.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: