Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/http-trailer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Test
====

Test `http_headers` keyword behavior on trailers

Ticket
======

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

PCAP
====

Pcap adapted/crafted from libhtp test file 27-request-trailer-raw.t
Binary file added tests/http-trailer/input.pcap
Binary file not shown.
3 changes: 3 additions & 0 deletions tests/http-trailer/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# same signature, except for the choice of fast_pattern
alert http1 any any -> any any (msg:"ua fast pattern, trailer"; http.user_agent; content: "Mozilla"; fast_pattern; http.header; content: "Server-Timing:"; sid:2;)
alert http1 any any -> any any (msg:"trailer fast_pattern, ua"; http.user_agent; content: "Mozilla"; http.header; content: "Server-Timing:"; fast_pattern; sid:3;)
17 changes: 17 additions & 0 deletions tests/http-trailer/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
requires:
min-version: 9

args:
- -k none

checks:
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 2
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 3
Loading