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
11 changes: 11 additions & 0 deletions tests/http2-errorcode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Description

Test http2.errorcode keyword

# Ticket

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

# PCAP

The pcap comes from https://github.com/grpc/grpc-node/issues/2744
Binary file added tests/http2-errorcode/input.pcap
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/http2-errorcode/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alert http2 any any -> any any (http2.errorcode:PROTOCOL_ERROR; sid:1;)
alert http2 any any -> any any (http2.errorcode:!NO_ERROR; sid:2;)
20 changes: 20 additions & 0 deletions tests/http2-errorcode/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
requires:
min-version: 9

# disables checksum verification
args:
- -k none

checks:
- filter:
count: 2
match:
event_type: alert
alert.signature_id: 1
http.http2.response.error_code: PROTOCOLERROR
- filter:
count: 2
match:
event_type: alert
alert.signature_id: 2
http.http2.response.error_code: PROTOCOLERROR
Loading