From: Jeff Lucovsky Date: Thu, 23 Apr 2020 14:57:01 +0000 (-0400) Subject: tests: add tests for issue 3515 X-Git-Tag: suricata-6.0.4~308 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb1e46e8524ccf4f202cbca0aea3b14eec23d4fc;p=thirdparty%2Fsuricata-verify.git tests: add tests for issue 3515 --- diff --git a/tests/bug-3515/test.rules b/tests/bug-3515/test.rules new file mode 100644 index 000000000..e5cffc28a --- /dev/null +++ b/tests/bug-3515/test.rules @@ -0,0 +1 @@ +alert tcp any any -> any any (msg:"Test rule"; sid:1;) diff --git a/tests/bug-3515/test.yaml b/tests/bug-3515/test.yaml new file mode 100644 index 000000000..8def8b788 --- /dev/null +++ b/tests/bug-3515/test.yaml @@ -0,0 +1,12 @@ +requires: + # No pcap required. + pcap: false + min-version: 6 + +args: + - --engine-analysis --set decoder.erspan.typeI.enabled=true + +checks: + - shell: + args: grep "SC_WARN_ERSPAN_CONFIG" suricata.log | wc -l | xargs + expect: 1