]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add tests for issue 3515
authorJeff Lucovsky <jeff@lucovsky.org>
Thu, 23 Apr 2020 14:57:01 +0000 (10:57 -0400)
committerVictor Julien <victor@inliniac.net>
Sun, 26 Apr 2020 11:42:32 +0000 (13:42 +0200)
tests/bug-3515/test.rules [new file with mode: 0644]
tests/bug-3515/test.yaml [new file with mode: 0644]

diff --git a/tests/bug-3515/test.rules b/tests/bug-3515/test.rules
new file mode 100644 (file)
index 0000000..e5cffc2
--- /dev/null
@@ -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 (file)
index 0000000..8def8b7
--- /dev/null
@@ -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