[SERVER-54029] Fix mock_kms.js mock server startup wait Created: 25/Jan/21  Updated: 29/Oct/23  Resolved: 10/Feb/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
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
Sprint: Security 2021-02-22
Participants:
Linked BF Score: 11

 Description   

mock_kms.js needs to call clearRawMongoProgramOutput() before checking rawMongoProgramOutput() for certain strings. Today, the test does not clear the log and this can cause the mock.js to erroneously believe the mock server has started when it is used multiple times in a single test.

There are other mocks that share the same issue
jstests/free_mon/libs/free_mon.js
jstests/noPassthrough/libs/configExpand/lib.js



 Comments   
Comment by Githook User [ 10/Feb/21 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-54029 Fix mock_kms.js mock server startup wait
Branch: master
https://github.com/mongodb/mongo/commit/edfe0f29ee287fafa81db0b578496c407dc95bf5

Comment by Githook User [ 10/Feb/21 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-54029 Fix mock_kms.js mock server startup wait
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/d8c18611a3536d4ed6bd1f6f74dcad9681829527

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