corazawaf / coraza

OWASP Coraza WAF is a golang modsecurity compatible web application firewall library
https://www.coraza.io
Apache License 2.0
2.28k stars 226 forks source link

tests: adds engine tests about args with square brackets #1230

Closed M4tteoP closed 3 days ago

M4tteoP commented 4 days ago

Follows https://github.com/corazawaf/coraza/pull/1226, address https://github.com/corazawaf/coraza/pull/1226#pullrequestreview-2452007493.

cc @geoolekom

codecov[bot] commented 4 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.66%. Comparing base (606a1bb) to head (a5a16b6). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1230 +/- ## ======================================= Coverage 81.66% 81.66% ======================================= Files 168 168 Lines 9655 9655 ======================================= Hits 7885 7885 Misses 1519 1519 Partials 251 251 ``` | [Flag](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | Coverage Δ | | |---|---|---| | [coraza.rule.case_sensitive_args_keys](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.62% <ø> (ø)` | | | [coraza.rule.multiphase_valuation](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.66% <ø> (ø)` | | | [coraza.rule.no_regex_multiline](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.60% <ø> (ø)` | | | [default](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.66% <ø> (ø)` | | | [examples+](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `16.45% <ø> (ø)` | | | [examples+coraza.rule.case_sensitive_args_keys](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.62% <ø> (ø)` | | | [examples+coraza.rule.multiphase_valuation](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.50% <ø> (ø)` | | | [examples+coraza.rule.no_regex_multiline](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.52% <ø> (ø)` | | | [examples+memoize_builders](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.62% <ø> (ø)` | | | [examples+no_fs_access](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `80.94% <ø> (ø)` | | | [ftw](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.66% <ø> (ø)` | | | [memoize_builders](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.76% <ø> (ø)` | | | [no_fs_access](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.10% <ø> (ø)` | | | [tinygo](https://app.codecov.io/gh/corazawaf/coraza/pull/1230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf) | `81.63% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=corazawaf#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: