Skip to content

Commit

Permalink
test: test for empty dns/eve formats
Browse files Browse the repository at this point in the history
Test that when dns/eve "formats" is empty, it uses the default of all.

Bug: #6420
  • Loading branch information
jasonish authored and victorjulien committed Oct 30, 2023
1 parent f0c6d49 commit ee229ca
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/dns/dns-eve-empty-format/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Test that emtpy EVE/DNS "formats" configuration results in the default
of both formats.

https://redmine.openinfosecfoundation.org/issues/6420

Binary file added tests/dns/dns-eve-empty-format/input.pcap
Binary file not shown.
11 changes: 11 additions & 0 deletions tests/dns/dns-eve-empty-format/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
%YAML 1.1
---

outputs:
- eve-log:
enabled: yes
filetype: regular
filename: eve.json
types:
- dns:
formats:
7 changes: 7 additions & 0 deletions tests/dns/dns-eve-empty-format/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
checks:
- filter:
count: 1
match:
pcap_cnt: 8
dns.answers[0].rrtype: A
dns.grouped.A[0]: "52.85.112.21"

0 comments on commit ee229ca

Please sign in to comment.