[SERVER-84708] Make RotateCertificate unit tests reset the sslGlobalParams after each test Created: 09/Jan/24  Updated: 16/Jan/24  Resolved: 16/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Erin McNulty Assignee: Erin McNulty
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2024-01-22
Participants:
Linked BF Score: 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.



 Comments   
Comment by Githook User [ 12/Jan/24 ]

Author:

{'name': 'Erin McNulty', 'email': 'erin.mcnulty@mongodb.com', 'username': 'erin2722'}

Message: SERVER-84708: Make RotateCertificate unit tests reset the sslGlobalParams after each test (#17973)

GitOrigin-RevId: e318355eae5e1e56f7fedcd9680861b39e302128
Branch: master
https://github.com/mongodb/mongo/commit/ac2456852e74f53fe8829bbce874fcca4380cad5

Generated at Thu Feb 08 06:55:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.