From: Jason Ish Date: Tue, 19 Dec 2023 18:10:50 +0000 (-0600) Subject: requires: check stat; unknown requires keyword X-Git-Tag: suricata-6.0.16~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1570%2Fhead;p=thirdparty%2Fsuricata-verify.git requires: check stat; unknown requires keyword --- diff --git a/tests/requires/test.rules b/tests/requires/test.rules index eaa41a412..2d24c964f 100644 --- a/tests/requires/test.rules +++ b/tests/requires/test.rules @@ -13,3 +13,5 @@ alert vxlan any any -> any any (requires: version >= 10; sid:1;) alert udp any any -> any any (vxlan_vni:10; requires: version >= 10; sid:2;) alert http any any => any any (requires: version >= 10; sid:3;) alert tcp any any -> any any (frame:smtp.not_supported; requires: version >= 10; sid:4;) + +alert asdf any any -> any any (requires: version >= 6, foo bar; sid:102; rev:1;) diff --git a/tests/requires/test.yaml b/tests/requires/test.yaml index 63ac64c08..72f7e67b6 100644 --- a/tests/requires/test.yaml +++ b/tests/requires/test.yaml @@ -42,3 +42,9 @@ checks: count: 0 match: alert.signature_id: 9 + + - filter: + count: 1 + match: + event_type: stats + stats.detect.engines[0].rules_skipped: 7