]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
http2: backport error code test to 8 2691/head
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 15 Oct 2025 16:21:54 +0000 (18:21 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 15 Oct 2025 19:42:57 +0000 (21:42 +0200)
or at least some checks of it

tests/http2-errorcode/test.rules
tests/http2-errorcode/test.yaml

index d3f6de011434e1f482a7aa966a6b0e6fcadee976..783eb11da98757a6ce88ef772952fcc5057715d4 100644 (file)
@@ -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;)
index 0d9683109c12d7229df29aadf7ac4421d23d52b3..f93fee78c93811c2632949e8f2ecc50372e6f278 100644 (file)
@@ -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