Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-84708

Make RotateCertificate unit tests reset the sslGlobalParams after each test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2024-01-22
    • 158

      Right now, we update the sslGlobalParams to reference a temp directory with certificates in them so that we can overwrite the certificates and simulate rotation. However, we do not reset the sslGlobalParams after the test, which causes future tests to attempt to use ssl with the now deleted TempDir paths. Reset the ssl certificate information after each test, so that future tests do not reference the invalid directories.

            Assignee:
            erin.mcnulty@mongodb.com Erin McNulty
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: