]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
doh: adds test for dns over http2 with post 1980/head 1988/head
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 28 Mar 2024 15:51:03 +0000 (16:51 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Fri, 19 Jul 2024 14:36:18 +0000 (16:36 +0200)
Ticket: 5773

tests/dns-over-http2-post/README.md [new file with mode: 0644]
tests/dns-over-http2-post/dns_over_https_POST.pcap [new file with mode: 0644]
tests/dns-over-http2-post/test.yaml [new file with mode: 0644]

diff --git a/tests/dns-over-http2-post/README.md b/tests/dns-over-http2-post/README.md
new file mode 100644 (file)
index 0000000..0afd21b
--- /dev/null
@@ -0,0 +1,9 @@
+# Description
+
+Test DNS over HTTP2 with POST
+https://redmine.openinfosecfoundation.org/issues/5773
+
+# PCAP
+
+The pcap comes from https://redmine.openinfosecfoundation.org/issues/5773
+
diff --git a/tests/dns-over-http2-post/dns_over_https_POST.pcap b/tests/dns-over-http2-post/dns_over_https_POST.pcap
new file mode 100644 (file)
index 0000000..930c062
Binary files /dev/null and b/tests/dns-over-http2-post/dns_over_https_POST.pcap differ
diff --git a/tests/dns-over-http2-post/test.yaml b/tests/dns-over-http2-post/test.yaml
new file mode 100644 (file)
index 0000000..c8858b0
--- /dev/null
@@ -0,0 +1,24 @@
+requires:
+  min-version: 8.0.0
+
+# disables checksum verification
+args:
+  - -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: dns
+        dns.queries[0].rrname: example.com
+        dns.queries[0].rrtype: NS
+        dns.answers[0].rrname: example.com
+        dns.answers[0].rrtype: NS
+        dns.answers[0].rdata: b.iana-servers.net
+        dns.grouped.NS[0]: b.iana-servers.net
+  - filter:
+      count: 1
+      match:
+        event_type: flow
+        app_proto: doh2
+        app_proto_orig: http2