[SERVER-63063] Include actual log count in checkLog error messages Created: 27/Jan/22  Updated: 06/Dec/22

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

Type: Improvement Priority: Major - P3
Reporter: Varun Ravichandran Assignee: Backlog - Security Team
Resolution: Unresolved Votes: 0
Labels: former-quick-wins
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Server Security
Participants:
Linked BF Score: 2

 Description   

The checkLog object provides access to various helper functions that can be used to assert the presence of certain logs. Some of these functions - namely, checkContainsWithCountJson, checkContainsWithAtLeastCountJson, containsRelaxedJson, containsWithCount, and containsWithAtLeastCount - allow the caller to specify an expected number of logs matching some criteria and compare the counted number of logs with the expected number. However, the error messages for all of these functions do not specify the counted number of logs meeting the criteria that were found in the log. As a result, it's difficult to debug whether the desired log was completely missing, occurred too few times, or occurred too many times. Providing this information in the error message would improve the debugging experience of tests that expect certain logs to appear roughly a certain number of times.


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