]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
dns-tcp-www-google-com: add dns eve v2 test
authorJason Ish <jason.ish@oisf.net>
Mon, 15 Mar 2021 21:36:05 +0000 (15:36 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 16 Mar 2021 04:25:35 +0000 (22:25 -0600)
tests/dns-tcp-www-google-com-v1/README.md [new file with mode: 0644]
tests/dns-tcp-www-google-com-v1/dns.pcap [new file with mode: 0644]
tests/dns-tcp-www-google-com-v1/suricata.yaml [new file with mode: 0644]
tests/dns-tcp-www-google-com-v1/test.yaml [new file with mode: 0644]
tests/dns-tcp-www-google-com/suricata.yaml
tests/dns-tcp-www-google-com/test.yaml

diff --git a/tests/dns-tcp-www-google-com-v1/README.md b/tests/dns-tcp-www-google-com-v1/README.md
new file mode 100644 (file)
index 0000000..d1db12d
--- /dev/null
@@ -0,0 +1,2 @@
+A basic TCP DNS test that sends one request with a response that
+contains multiple answers.
diff --git a/tests/dns-tcp-www-google-com-v1/dns.pcap b/tests/dns-tcp-www-google-com-v1/dns.pcap
new file mode 100644 (file)
index 0000000..5537809
Binary files /dev/null and b/tests/dns-tcp-www-google-com-v1/dns.pcap differ
diff --git a/tests/dns-tcp-www-google-com-v1/suricata.yaml b/tests/dns-tcp-www-google-com-v1/suricata.yaml
new file mode 100644 (file)
index 0000000..6e0f400
--- /dev/null
@@ -0,0 +1,13 @@
+%YAML 1.1
+---
+
+# Remove stats logging.
+stats:
+  enabled: no
+
+outputs:
+  - eve-log:
+      enabled: yes
+      types:
+        - dns:
+            version: 1
diff --git a/tests/dns-tcp-www-google-com-v1/test.yaml b/tests/dns-tcp-www-google-com-v1/test.yaml
new file mode 100644 (file)
index 0000000..90fec6b
--- /dev/null
@@ -0,0 +1,21 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+    - RUST
+  lt-version: 7
+
+checks:
+  - filter:
+      count: 1
+      match:
+        src_ip: "10.16.1.11"
+        dest_ip: "8.8.4.4"
+        event_type: dns
+        dns.type: query
+  - filter:
+      count: 12
+      match:
+        src_ip: "10.16.1.11"
+        dest_ip: "8.8.4.4"
+        event_type: dns
+        dns.type: answer
index 6e0f4008d5a12107ca98b6f17bb26a86399eeb78..6bc3c0dedb4e386ed04f50a6d4600f3bcadaeaef 100644 (file)
@@ -10,4 +10,3 @@ outputs:
       enabled: yes
       types:
         - dns:
-            version: 1
index 00c255e6f8979bdfecf5a3f301b34c4791970476..16f4a6432659bec7b999095f2fdb6d89cb18ab55 100644 (file)
@@ -1,7 +1,6 @@
 requires:
   features:
     - HAVE_LIBJANSSON
-    - RUST
 
 checks:
   - filter:
@@ -12,7 +11,7 @@ checks:
         event_type: dns
         dns.type: query
   - filter:
-      count: 12
+      count: 1
       match:
         src_ip: "10.16.1.11"
         dest_ip: "8.8.4.4"