]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add simple ip only w/ negated content test
authorJuliana Fajardini <jufajardini@gmail.com>
Fri, 24 Jan 2025 22:02:07 +0000 (19:02 -0300)
committerVictor Julien <victor@inliniac.net>
Tue, 28 Jan 2025 08:32:49 +0000 (09:32 +0100)
tests/like-ip-only-01/krb5-frag.pcap [new file with mode: 0644]
tests/like-ip-only-01/suricata.yaml [new file with mode: 0644]
tests/like-ip-only-01/test.rules [new file with mode: 0644]
tests/like-ip-only-01/test.yaml [new file with mode: 0644]

diff --git a/tests/like-ip-only-01/krb5-frag.pcap b/tests/like-ip-only-01/krb5-frag.pcap
new file mode 100644 (file)
index 0000000..209fd19
Binary files /dev/null and b/tests/like-ip-only-01/krb5-frag.pcap differ
diff --git a/tests/like-ip-only-01/suricata.yaml b/tests/like-ip-only-01/suricata.yaml
new file mode 100644 (file)
index 0000000..601b909
--- /dev/null
@@ -0,0 +1,8 @@
+%YAML 1.1
+---
+
+outputs:
+  - eve-log:
+      enabled: yes
+      types:
+        - alert
diff --git a/tests/like-ip-only-01/test.rules b/tests/like-ip-only-01/test.rules
new file mode 100644 (file)
index 0000000..c81a6e7
--- /dev/null
@@ -0,0 +1 @@
+alert tcp 192.168.51.206 any -> !192.168.51.206 any (msg:"simple negated ip test"; flow:established; sid:1001;)
diff --git a/tests/like-ip-only-01/test.yaml b/tests/like-ip-only-01/test.yaml
new file mode 100644 (file)
index 0000000..0a8eb64
--- /dev/null
@@ -0,0 +1,11 @@
+requires:
+  min-version: 7
+
+args:
+- -k none
+
+checks:
+  - filter:
+      count: 17
+      match:
+        event_type: alert