From d5cd6af39a4acca6e2b31476be173435face7170 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 15 Oct 2025 18:21:54 +0200 Subject: [PATCH] http2: backport error code test to 8 or at least some checks of it --- tests/http2-errorcode/test.rules | 4 ++-- tests/http2-errorcode/test.yaml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/http2-errorcode/test.rules b/tests/http2-errorcode/test.rules index d3f6de011..783eb11da 100644 --- a/tests/http2-errorcode/test.rules +++ b/tests/http2-errorcode/test.rules @@ -1,6 +1,6 @@ alert http2 any any -> any any (http2.errorcode:INTERNAL_ERROR; sid:1;) -alert http2 any any -> any any (http2.errorcode:!NO_ERROR; sid:2;) +alert http2 any any -> any any (requires: version >= 9.0.0; http2.errorcode:!NO_ERROR; sid:2;) # no match alert http2 any any -> any any (http2.errorcode:HTTP_1_1_REQUIRED; sid:3;) # new format -alert http2 any any -> any any (http2.errorcode:HTTP11_REQUIRED; sid:4;) +alert http2 any any -> any any (requires: version >= 9.0.0; http2.errorcode:HTTP11_REQUIRED; sid:4;) diff --git a/tests/http2-errorcode/test.yaml b/tests/http2-errorcode/test.yaml index 0d9683109..f93fee78c 100644 --- a/tests/http2-errorcode/test.yaml +++ b/tests/http2-errorcode/test.yaml @@ -1,5 +1,5 @@ requires: - min-version: 9 + min-version: 8.0.2 # disables checksum verification args: @@ -13,6 +13,7 @@ checks: alert.signature_id: 1 http.http2.request.error_code: INTERNALERROR - filter: + min-version: 9 count: 2 match: event_type: alert -- 2.47.3