From: Jason Ish Date: Sat, 20 Jan 2024 17:01:12 +0000 (-0700) Subject: tests/requires: updates to support 7.0.3 X-Git-Tag: suricata-6.0.16~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1596%2Fhead;p=thirdparty%2Fsuricata-verify.git tests/requires: updates to support 7.0.3 --- diff --git a/tests/requires/test.yaml b/tests/requires/test.yaml index 72f7e67b6..b6a80d25e 100644 --- a/tests/requires/test.yaml +++ b/tests/requires/test.yaml @@ -1,6 +1,5 @@ requires: - files: - - rust/src/detect/requires.rs + min-version: 7.0.3 pcap: ../eve-metadata/testmyids.pcap @@ -20,13 +19,13 @@ checks: match: alert.signature_id: 8 - # Check that for Suricata >= 7.0.0 and < 8 we have one alert and that alert - # is sid 7. + # Check that for Suricata >= 7.0.0 and < 8 we have two alerts and that one is + # sid 7 and the other is sid 9. - filter: requires: min-version: 7 lt-version: 8 - count: 1 + count: 2 match: event_type: alert - filter: @@ -36,10 +35,11 @@ checks: count: 1 match: alert.signature_id: 7 - - # Should have nothing for SID 9. - filter: - count: 0 + requires: + min-version: 7 + lt-version: 8 + count: 1 match: alert.signature_id: 9 @@ -47,4 +47,4 @@ checks: count: 1 match: event_type: stats - stats.detect.engines[0].rules_skipped: 7 + stats.detect.engines[0].rules_skipped: 6