-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip: test fix for multiple rule match #794
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## v3/dev #794 +/- ##
==========================================
- Coverage 81.96% 81.96% -0.01%
==========================================
Files 153 153
Lines 8256 8255 -1
==========================================
- Hits 6767 6766 -1
Misses 1272 1272
Partials 217 217
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Hey @jptosso, could you please take a look at #792 (Specifically the Recapping the outputs generated: Current Coraza
This PR
PR #792
The approach is a bit different. The idea with #792 is about writing in a more concise way the logs, considering that the matchedRule is one (always the same) but with multiple matches, printed as trailing payloads. This PR, considers each matched value as a completely new match, adding multiple time the same rule inside matchedRules and printing multiple times like a completely different match. |
Thanks @M4tteoP ! I will wait for your PR to be merged |
In the past there used to be a bug that printed logs multiple times. Now we are not properly printing multiple matches for a single rule, for example:
Previous statement is only generating one message but it should generate two if there is a match