Skip to content

Commit

Permalink
doh: adds test for dns over http2 with post
Browse files Browse the repository at this point in the history
Ticket: 5773
  • Loading branch information
catenacyber committed Jul 10, 2024
1 parent 5a37a25 commit c0e567c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/dns-over-http2-post/README.md
Original file line number Diff line number Diff line change
@@ -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

Binary file not shown.
24 changes: 24 additions & 0 deletions tests/dns-over-http2-post/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
requires:
min-version: 8.0.0

# disables checksum verification
args:
- -k none

checks:
- filter:
count: 1
match:
event_type: doh2
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

0 comments on commit c0e567c

Please sign in to comment.