]> git.ipfire.org Git - thirdparty/suricata-verify.git/commit
tests: Support list checks
authorJeff Lucovsky <jlucovsky@oisf.net>
Fri, 28 Mar 2025 16:57:20 +0000 (12:57 -0400)
committerVictor Julien <victor@inliniac.net>
Mon, 7 Apr 2025 20:04:21 +0000 (22:04 +0200)
commitbfd2b30ab6005ebd5b7fa573cfcd7e92f0f7ff07
treef9e7151b899fe619427c9bbe01cab81bd06fb8a5
parent799ea5e446a392249b91e898e1cac34bfc7e67de
tests: Support list checks

Support string checks for JSON lists with the new __contains operator that
checks whether a string is contained within a list.

Example
    - JSON list: "ftp":{"reply":["Opening BINARY mode data connection for temp.txt (1164 bytes).","Transfer complete."], }
    - Check: ftp.reply.__contains: 'Transfer complete.'
README.md
run.py