]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: test defrag exception policy with drop-flow
authorJuliana Fajardini <jufajardini@oisf.net>
Thu, 23 Mar 2023 21:09:33 +0000 (18:09 -0300)
committerVictor Julien <victor@inliniac.net>
Mon, 17 Apr 2023 08:54:02 +0000 (10:54 +0200)
Defrag memcap and flow memcap do not support flow action for the
exception policies, as there is no flow when the exception condition is
hit. In such cases, the exception policy must be considered as
`drop-packet`. This commit changes the defrag exception policy test to
check if this behavior is working.

tests/exception-policy-defrag-01/test.yaml

index 02a87c3a89db5598317639db612e5b98ae8a6f35..22be53c71c05f0610cb84c49a21d615ddcbddc00 100644 (file)
@@ -8,7 +8,7 @@ args:
 - -k none
 # pretend pretend error in the first fragment
 - --simulate-packet-defrag-memcap=1
-- --set defrag.memcap-policy=drop-packet
+- --set defrag.memcap-policy=drop-flow
 checks:
   - filter:
       count: 0