From: Jeff Lucovsky Date: Sat, 24 Oct 2020 13:17:37 +0000 (-0400) Subject: tests: Add combo with file_data/fast_pattern X-Git-Tag: suricata-6.0.4~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1042ae58aa7f562db1db9fb80aa9a407a885dc7;p=thirdparty%2Fsuricata-verify.git tests: Add combo with file_data/fast_pattern --- diff --git a/tests/bug-3616/input.rules b/tests/bug-3616/input.rules index c86ebeff0..fa3632ac6 100644 --- a/tests/bug-3616/input.rules +++ b/tests/bug-3616/input.rules @@ -1,3 +1,4 @@ alert http any any -> any any (msg:"CANARY TEST #1"; file_data; content:"commonly-accepted commonly-used"; sid:1; rev:1;) -alert http any any -> any any (msg:"strip_whitespace HTTP test #1"; flow:established; file_data; strip_whitespace; content:"bricks-and-clicks"; sid:2; rev:1;) -alert tcp any any -> any any (msg:"strip_whitespace TCP test #1"; flow:established; file_data; strip_whitespace; content:"inventedtheterm"; sid:3; rev:1;) +alert http any any -> any any (msg:"CANARY TEST #2"; http.stat_code; content:"200"; fast_pattern; file_data; content:"commonly-accepted commonly-used"; sid:2; rev:1;) +alert http any any -> any any (msg:"strip_whitespace HTTP test #1"; flow:established; file_data; strip_whitespace; content:"bricks-and-clicks"; sid:3; rev:1;) +alert tcp any any -> any any (msg:"strip_whitespace TCP test #1"; flow:established; file_data; strip_whitespace; content:"inventedtheterm"; sid:4; rev:1;) diff --git a/tests/bug-3616/test.yaml b/tests/bug-3616/test.yaml index 546ecc5ff..f06dcde78 100644 --- a/tests/bug-3616/test.yaml +++ b/tests/bug-3616/test.yaml @@ -17,3 +17,8 @@ checks: match: event_type: alert alert.signature_id: 3 + - filter: + count: 1 + match: + event_type: alert + alert.signature_id: 4