]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add basic vxlan test 81/head
authorVictor Julien <victor@inliniac.net>
Thu, 27 Jun 2019 07:10:49 +0000 (09:10 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 27 Jun 2019 07:10:49 +0000 (09:10 +0200)
tests/vxlan-decoder-01/README.md [new file with mode: 0644]
tests/vxlan-decoder-01/input.pcap [new file with mode: 0644]
tests/vxlan-decoder-01/test.yaml [new file with mode: 0644]

diff --git a/tests/vxlan-decoder-01/README.md b/tests/vxlan-decoder-01/README.md
new file mode 100644 (file)
index 0000000..b217bf7
--- /dev/null
@@ -0,0 +1,7 @@
+# Description
+
+Test basic VXLAN decoding
+
+# PCAP
+
+Pcap from https://github.com/OISF/suricata/pull/3847/files
diff --git a/tests/vxlan-decoder-01/input.pcap b/tests/vxlan-decoder-01/input.pcap
new file mode 100644 (file)
index 0000000..ec4e3ad
Binary files /dev/null and b/tests/vxlan-decoder-01/input.pcap differ
diff --git a/tests/vxlan-decoder-01/test.yaml b/tests/vxlan-decoder-01/test.yaml
new file mode 100644 (file)
index 0000000..f7b2a6d
--- /dev/null
@@ -0,0 +1,19 @@
+requires:
+  min-version: 5.0.0
+  features:
+    - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: flow
+        src_port: 53
+        dest_port: 12345
+  - filter:
+      count: 1
+      match:
+        event_type: flow
+        src_port: 32021
+        dest_port: 12345
+