From: Victor Julien Date: Thu, 21 Feb 2019 11:12:39 +0000 (+0100) Subject: tests: add test for bug 2769 X-Git-Tag: suricata-6.0.4~471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fd5e7b2a50b254baa1bd7e883c6639a9e1296b0;p=thirdparty%2Fsuricata-verify.git tests: add test for bug 2769 --- diff --git a/tests/bug-2769/README b/tests/bug-2769/README new file mode 100644 index 000000000..35b574610 --- /dev/null +++ b/tests/bug-2769/README @@ -0,0 +1 @@ +Pcap from https://redmine.openinfosecfoundation.org/issues/2769 diff --git a/tests/bug-2769/issue_no_icmp.pcap b/tests/bug-2769/issue_no_icmp.pcap new file mode 100644 index 000000000..dadaa5751 Binary files /dev/null and b/tests/bug-2769/issue_no_icmp.pcap differ diff --git a/tests/bug-2769/test.rules b/tests/bug-2769/test.rules new file mode 100644 index 000000000..dc5f53201 --- /dev/null +++ b/tests/bug-2769/test.rules @@ -0,0 +1,2 @@ +alert tcp any any -> any any (flow:to_server,established; content:"functions"; pcre:"/\/[0-9]{2,8}\.functions/Ui"; sid:1; rev:1;) +alert tcp any any -> any any (flow:to_server,established; content:"functions"; pcre:"/somethingelse/Ui"; sid:2; rev:1;) diff --git a/tests/bug-2769/test.yaml b/tests/bug-2769/test.yaml new file mode 100644 index 000000000..f268b8c3a --- /dev/null +++ b/tests/bug-2769/test.yaml @@ -0,0 +1,19 @@ +requires: + features: + - HAVE_LIBJANSSON + +checks: + - filter: + count: 0 + match: + event_type: alert + - filter: + count: 0 + match: + event_type: alert + alert.signature_id: 1 + - filter: + count: 0 + match: + event_type: alert + alert.signature_id: 2