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

Make RotateCertificate unit tests reset the sslGlobalParams after each test

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2024-01-22
    • 158

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: