From: Victor Julien Date: Thu, 17 Dec 2020 09:52:59 +0000 (+0100) Subject: tests: add tcp async testmyids test X-Git-Tag: suricata-6.0.4~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64680c8d492c195d9ce93ae156dfa43e6610b923;p=thirdparty%2Fsuricata-verify.git tests: add tcp async testmyids test --- diff --git a/tests/alert-testmyids-async/input.pcap b/tests/alert-testmyids-async/input.pcap new file mode 100644 index 000000000..3feb74e78 Binary files /dev/null and b/tests/alert-testmyids-async/input.pcap differ diff --git a/tests/alert-testmyids-async/test.rules b/tests/alert-testmyids-async/test.rules new file mode 100644 index 000000000..9f1307bdb --- /dev/null +++ b/tests/alert-testmyids-async/test.rules @@ -0,0 +1 @@ +alert ip any any -> any any (msg:"GPL ATTACK_RESPONSE id check returned root"; content:"uid=0|28|root|29|"; classtype:bad-unknown; sid:2100498; rev:7;) diff --git a/tests/alert-testmyids-async/test.yaml b/tests/alert-testmyids-async/test.yaml new file mode 100644 index 000000000..7e39e829a --- /dev/null +++ b/tests/alert-testmyids-async/test.yaml @@ -0,0 +1,22 @@ +requires: + features: + - HAVE_LIBJANSSON + min-version: 5.0.0 +args: +- --set stream.midstream=true +- --set stream.async-oneside=true + +checks: + + # Check that we only have one alert event type in eve. + - filter: + count: 1 + match: + event_type: alert + src_port: 80 + + - filter: + count: 1 + match: + event_type: http + dest_port: 80