[SERVER-59220] Connectivity probes in ocsp_server_refresh.js should use fresh shells Created: 10/Aug/21  Updated: 29/Oct/23  Resolved: 10/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 5.0.7

Type: Improvement Priority: Major - P3
Reporter: Spencer Jackson Assignee: Erwin Pe
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Security 2022-02-07, Security 2022-02-21
Participants:
Linked BF Score: 15

 Description   

ocsp_server_refresh.js spawns servers and asserts various connectivity properties.

Currently, we probe them using fresh Mongo objects. However, all of these objects exist in the parent shell, and share an SSLManager and associated caching infrastructure.

To isolate each test case, we should:

  • Spawn a shell for each connection attempt
  • Parse their outputs to ensure that the precise nature of the failure is the one expected.
  • Assert soon that the shell produces the expected output, so that we tolerate transient states.


 Comments   
Comment by Githook User [ 15/Feb/22 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-59220 Connectivity probes in ocsp_server_refresh.js should use fresh shells

(cherry picked from commit 9957c797a0db77012cd2dd58d3535e9d435cd431)
Branch: v5.0
https://github.com/mongodb/mongo/commit/d1842162c8e3e55d2ca25133d85be68550a0b659

Comment by Githook User [ 10/Feb/22 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-59220 Connectivity probes in ocsp_server_refresh.js should use fresh shells
Branch: master
https://github.com/mongodb/mongo/commit/9957c797a0db77012cd2dd58d3535e9d435cd431

Generated at Thu Feb 08 05:46:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.