]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
9 days agoanalyzer/tests: ICMP icode engine analysis test master 2585/head
Jeff Lucovsky [Sun, 15 Jun 2025 14:27:00 +0000 (10:27 -0400)] 
analyzer/tests: ICMP icode engine analysis test

Test the ICMP icode engine analysis additions.

Issue: 6359

10 days agoframework: check for redundant check/test version requirement 2584/head
Philippe Antoine [Tue, 17 Jun 2025 13:25:49 +0000 (15:25 +0200)] 
framework: check for redundant check/test version requirement

10 days agodns: remove never run check
Philippe Antoine [Tue, 17 Jun 2025 07:48:22 +0000 (09:48 +0200)] 
dns: remove never run check

As version requirement for check was incompatible with the one
from the test

10 days agoframework: check test/check version compatibility
Philippe Antoine [Tue, 17 Jun 2025 07:47:44 +0000 (09:47 +0200)] 
framework: check test/check version compatibility

10 days agofirewall: remove unrun check
Philippe Antoine [Tue, 17 Jun 2025 07:15:40 +0000 (09:15 +0200)] 
firewall: remove unrun check

We cannot tun a check with version less than 7 if the whole test
is min version 8

10 days agotests: remove wrong lt-version: 7
Philippe Antoine [Tue, 17 Jun 2025 07:00:40 +0000 (09:00 +0200)] 
tests: remove wrong lt-version: 7

When we meant to test before version 8

10 days agotests/lua: simply return of empty needs
Jason Ish [Thu, 19 Jun 2025 18:10:58 +0000 (12:10 -0600)] 
tests/lua: simply return of empty needs

Just "return {}". Makes it easier to extract what is actually being
returned here for comparison with documentation.

10 days agogithub-ci: add macos job
Jason Ish [Sun, 8 Jun 2025 20:33:34 +0000 (14:33 -0600)] 
github-ci: add macos job

Mainly the make sure that changers to the runner don't cause issues.
macOS is different enough from Linux to needs its own check.

10 days agotests/rules: add test for bug 5177
Juliana Fajardini [Thu, 29 May 2025 01:39:46 +0000 (22:39 -0300)] 
tests/rules: add test for bug 5177

The engine analyzer issues the same note about using new rule buffers
regardless of the rule usage of new buffer or the old ones.
This test is just to showcase this.

Bug #5177

2 weeks agotests: add tests for decode encapsulation types 2580/head
Juliana Fajardini [Thu, 5 Jun 2025 15:43:12 +0000 (12:43 -0300)] 
tests: add tests for decode encapsulation types

Add simple tests for alert to match on TCP traffic over:

- IPv4 over IPv4 - bug-4571-01
- IPv6           - bug-4571-02
- IPv6 over IPv6 - bug-4571-03
- IPv6 over IPv4 - bug-4571-04
- IPv4           - bug-4571-05
- IPv4 over IPv6 - bug-4571-06

Related to
Bug #4571
Bug #7725
Bug #7752

2 weeks agotest/analyzer: Add test for dsize info
Jeff Lucovsky [Sun, 15 Jun 2025 15:02:16 +0000 (11:02 -0400)] 
test/analyzer: Add test for dsize info

Add a test that checks for dsize value information.

3 weeks agodetect/test: Backport 7390 to 7.0.x 2570/head
Jeff Lucovsky [Tue, 10 Jun 2025 13:10:16 +0000 (09:10 -0400)] 
detect/test: Backport 7390 to 7.0.x

3 weeks agotests: remove exit-code check for datasets-absolute-allowed on v8 2566/head 2568/head
Andreas Herz [Wed, 11 Jun 2025 08:42:11 +0000 (10:42 +0200)] 
tests: remove exit-code check for datasets-absolute-allowed on v8

With the commit in Suricata to skip adding localstatedir when a full
path is provided, the S-V test does not exit with 1 anymore but rather
with 0 since it succeeds.

This commits updates the previous test to run with Suricata prior to
verison 8 and a dedicated copy of the test to work with Suricata 8
without the need to check the exit code anymore, since it's 0.

The new test is split between Unix like systems and Windows by using
different absolute paths for the filenames.

3 weeks agotests: add ipv4 datajson test 2564/head 2565/head
Eric Leblond [Mon, 9 Jun 2025 14:32:11 +0000 (16:32 +0200)] 
tests: add ipv4 datajson test

3 weeks agotests: datajson uses context_key
Eric Leblond [Sun, 8 Jun 2025 07:02:09 +0000 (09:02 +0200)] 
tests: datajson uses context_key

Rename the enrichment_key to context_key in the signatures.

3 weeks agotests: update datajson to latest code
Eric Leblond [Wed, 7 May 2025 09:18:57 +0000 (11:18 +0200)] 
tests: update datajson to latest code

3 weeks agotests: datajson remove_key tests
Eric Leblond [Sat, 29 Mar 2025 07:48:38 +0000 (08:48 +0100)] 
tests: datajson remove_key tests

3 weeks agotests: fix memcap following data structure change
Eric Leblond [Fri, 28 Mar 2025 08:34:08 +0000 (09:34 +0100)] 
tests: fix memcap following data structure change

3 weeks agotests: add jsonline format test for datajson
Eric Leblond [Thu, 27 Mar 2025 22:23:50 +0000 (23:23 +0100)] 
tests: add jsonline format test for datajson

3 weeks agotests: update datajson to new file format
Eric Leblond [Mon, 24 Mar 2025 20:07:02 +0000 (21:07 +0100)] 
tests: update datajson to new file format

Update the tests to use JSON format and the new dataset syntax.

3 weeks agotests: update datajson 0.9 syntax
Eric Leblond [Thu, 13 Mar 2025 07:29:33 +0000 (08:29 +0100)] 
tests: update datajson 0.9 syntax

3 weeks agotests: datajson test are Suricata 8
Eric Leblond [Sun, 2 Mar 2025 20:49:00 +0000 (21:49 +0100)] 
tests: datajson test are Suricata 8

3 weeks agotests: test new json format option
Eric Leblond [Sun, 22 Dec 2024 09:34:21 +0000 (10:34 +0100)] 
tests: test new json format option

3 weeks agotests: add json datajson
Eric Leblond [Fri, 20 Dec 2024 21:50:41 +0000 (22:50 +0100)] 
tests: add json datajson

3 weeks agotests: add pcre extraction tests
Eric Leblond [Sat, 14 Dec 2024 21:41:59 +0000 (22:41 +0100)] 
tests: add pcre extraction tests

Based on detect-pcre-05.

3 weeks agotests: add load failing test for datajson
Eric Leblond [Mon, 2 Dec 2024 00:03:22 +0000 (01:03 +0100)] 
tests: add load failing test for datajson

3 weeks agotests: check that datajson fails on dataset
Eric Leblond [Sun, 1 Dec 2024 22:04:04 +0000 (23:04 +0100)] 
tests: check that datajson fails on dataset

Normal dataset are not supposed to load with datajson so we
should exit with code 1.

3 weeks agotests: add test for integer and string value
Eric Leblond [Sun, 1 Dec 2024 21:49:19 +0000 (22:49 +0100)] 
tests: add test for integer and string value

They are valid json and need to be accepted.

3 weeks agotests: add missing files
Eric Leblond [Sun, 1 Dec 2024 20:37:24 +0000 (21:37 +0100)] 
tests: add missing files

3 weeks agotests: duplicate value handling in datajson
Eric Leblond [Sun, 13 Oct 2024 19:49:02 +0000 (21:49 +0200)] 
tests: duplicate value handling in datajson

3 weeks agotests: add md5 test to datajson
Eric Leblond [Sun, 13 Oct 2024 11:40:43 +0000 (13:40 +0200)] 
tests: add md5 test to datajson

3 weeks agotests: add sha256 test to datajson
Eric Leblond [Sun, 13 Oct 2024 11:32:20 +0000 (13:32 +0200)] 
tests: add sha256 test to datajson

3 weeks agotests: add second datajson test
Eric Leblond [Wed, 2 Oct 2024 20:48:08 +0000 (22:48 +0200)] 
tests: add second datajson test

3 weeks agotests: add initial datajson test
Eric Leblond [Wed, 2 Oct 2024 19:54:47 +0000 (21:54 +0200)] 
tests: add initial datajson test

3 weeks agotests: add pre_stream tests 2559/head
Victor Julien [Sun, 18 May 2025 08:42:10 +0000 (10:42 +0200)] 
tests: add pre_stream tests

3 weeks agotest/rule: Check buffer consistency when using variables
Jeff Lucovsky [Sat, 7 Jun 2025 13:49:20 +0000 (09:49 -0400)] 
test/rule: Check buffer consistency when using variables

Issue: 7549

3 weeks agotest/dns: update src and dest addresses
Jason Ish [Thu, 5 Jun 2025 00:50:59 +0000 (18:50 -0600)] 
test/dns: update src and dest addresses

With ticket 6400, DNS responses now use the src_ip (and port) of the
DNS server, update the tests to match.

Ticket: #6400

3 weeks agotest/dns: add address checks for directionality
Jason Ish [Thu, 5 Jun 2025 00:50:43 +0000 (18:50 -0600)] 
test/dns: add address checks for directionality

4 weeks agotest/entropy: Validate entropy values 2551/head
Jeff Lucovsky [Sat, 31 May 2025 14:37:53 +0000 (10:37 -0400)] 
test/entropy: Validate entropy values

Validate entropy values from flow and alert logs.

4 weeks agorun: skip multi-processing on macOS 2549/head
Victor Julien [Fri, 6 Jun 2025 08:13:56 +0000 (10:13 +0200)] 
run: skip multi-processing on macOS

4 weeks agorun: support multi processing on BSD's 2537/head
Victor Julien [Wed, 4 Jun 2025 09:32:01 +0000 (11:32 +0200)] 
run: support multi processing on BSD's

Should be supported on all but WIN32.

4 weeks agotest/bug-7390 Add test cases relating to 7390 2547/head
Jeff Lucovsky [Tue, 17 Dec 2024 14:18:49 +0000 (09:18 -0500)] 
test/bug-7390 Add test cases relating to 7390

Issue: 7390

Insure that both rules trigger alerts; the rules are equivalent with one
using a distance variable and the other a hard-coded value.

4 weeks agotests: add test for bug 7725 2543/head
Juliana Fajardini [Wed, 4 Jun 2025 18:03:25 +0000 (15:03 -0300)] 
tests: add test for bug 7725

4 weeks agopgsql: add test for copy in mode 2540/head
Juliana Fajardini [Thu, 1 May 2025 16:21:04 +0000 (13:21 -0300)] 
pgsql: add test for copy in mode

Task #7645

4 weeks agotests/lua: add thread info check to existing test 2532/head 2538/head
Jason Ish [Mon, 2 Jun 2025 23:26:37 +0000 (17:26 -0600)] 
tests/lua: add thread info check to existing test

4 weeks agolua/streaming: use new init syntax
Jason Ish [Mon, 2 Jun 2025 22:56:58 +0000 (16:56 -0600)] 
lua/streaming: use new init syntax

4 weeks agolua/streaming: update tests for changes to output streaming
Jason Ish [Mon, 2 Jun 2025 22:42:58 +0000 (16:42 -0600)] 
lua/streaming: update tests for changes to output streaming

Handle the stream data passed as arguments to the log function.

4 weeks agotests/lua: update SCByteVar tests for suricata.bytevar lib
Jason Ish [Mon, 2 Jun 2025 20:32:28 +0000 (14:32 -0600)] 
tests/lua: update SCByteVar tests for suricata.bytevar lib

5 weeks agotests/lua: update for suricata.config lua lib
Jason Ish [Fri, 30 May 2025 22:22:34 +0000 (16:22 -0600)] 
tests/lua: update for suricata.config lua lib

5 weeks agotests/lua: update lua tests for suricata.log lib 2531/head 2533/head
Jason Ish [Fri, 30 May 2025 16:28:40 +0000 (10:28 -0600)] 
tests/lua: update lua tests for suricata.log lib

Ticket: #7727

5 weeks agotests: add mdns test 2529/head
Jason Ish [Wed, 14 May 2025 22:35:04 +0000 (16:35 -0600)] 
tests: add mdns test

Ticket: #3952

5 weeks agopgsql: add tests for `query` keyword 2526/head
Juliana Fajardini [Sun, 25 May 2025 20:23:00 +0000 (17:23 -0300)] 
pgsql: add tests for `query` keyword

Related to
Task #6259

5 weeks agotest/decode: Test SLL2 decode 2523/head 2525/head
Jeff Lucovsky [Sat, 24 May 2025 15:26:40 +0000 (11:26 -0400)] 
test/decode: Test SLL2 decode

This test checks SLL2 decode operation.

6 weeks agodataset: backport test for ip set 2519/head
Philippe Antoine [Tue, 20 May 2025 12:51:49 +0000 (14:51 +0200)] 
dataset: backport test for ip set

Ticket: 7689

6 weeks agotest/tlslib: Lua TLS library tests 2516/head 2518/head
Jeff Lucovsky [Thu, 15 May 2025 11:50:40 +0000 (07:50 -0400)] 
test/tlslib: Lua TLS library tests

Issue: 7608

6 weeks agodetect/ftp: Tests for ftp.completion 2515/head
Jeff Lucovsky [Tue, 8 Apr 2025 11:25:08 +0000 (07:25 -0400)] 
detect/ftp: Tests for ftp.completion

This commit adds test cases for the rule keyword ftp.completion_code

Note that ftp.completion code can be used
- individually
- with other ftp keywords, e.g., ftp.reply

7 weeks agotests/luaxform: Lua transform tests 2262/head 2514/head
Jeff Lucovsky [Tue, 17 Sep 2024 12:56:36 +0000 (08:56 -0400)] 
tests/luaxform: Lua transform tests

This commit adds tests for new Lua transform
- Basic transform operation
- Ensure non-existent Lua scripts are detected
- Ensure Lua scripts without transform functions are detected
- Ensure Lua scripts properly receive optional transform arguments
- Ensure Lua scripts work with Suricata's Lua libraries

7 weeks agorules/test: add app-layer-protocol negated test
Juliana Fajardini [Fri, 13 Sep 2024 21:27:50 +0000 (18:27 -0300)] 
rules/test: add app-layer-protocol negated test

To complement bug-7241 tests.

7 weeks agotests/ftp: Add tests for ftp_reply_received keyword 2512/head
Jeff Lucovsky [Wed, 16 Apr 2025 13:29:49 +0000 (09:29 -0400)] 
tests/ftp: Add tests for ftp_reply_received keyword

Add tests for the FTP keyword ftp.reply_received that alert on both
values for reply_received -- "yes" and "no".

Also validate that only yes, no, on, off are accepted.

Issue: 7506

7 weeks agoIntroduce TLS-JA4 client/server handshake tests 2510/head
Richard McConnell [Wed, 29 Jan 2025 09:03:34 +0000 (09:03 +0000)] 
Introduce TLS-JA4 client/server handshake tests

This update introduces two new tests to accompany the introduction of
client/server handshake parameters and output via JSON-EVE.

- ja4-cl-handshake: client eve output test
- ja4-sv-handshake: server eve output test

7 weeks agotest/ftp: Tests for ftp.mode keyword 2508/head
Jeff Lucovsky [Sat, 26 Apr 2025 12:16:34 +0000 (08:16 -0400)] 
test/ftp: Tests for ftp.mode keyword

Issue: 7505

Add tests for the ftp.mode keyword for active, passive, and rule keyword
validation checks on the keyword option value.

7 weeks agotests: drop/pass deconfliction updates for 7.0.x 2506/head 2507/head
Victor Julien [Tue, 13 May 2025 09:28:37 +0000 (11:28 +0200)] 
tests: drop/pass deconfliction updates for 7.0.x

8 weeks agotest: add lua test for suricata.file lib 2505/head
Jason Ish [Thu, 8 May 2025 21:51:24 +0000 (15:51 -0600)] 
test: add lua test for suricata.file lib

Ticket: #7491

8 weeks agotests/pgsql: add check for redacted password msg
Juliana Fajardini [Fri, 25 Apr 2025 18:41:26 +0000 (15:41 -0300)] 
tests/pgsql: add check for redacted password msg

Bug #7647

8 weeks agotests: firewall: add verdict output 2503/head
Victor Julien [Fri, 9 May 2025 08:50:17 +0000 (10:50 +0200)] 
tests: firewall: add verdict output

8 weeks agotests: add checks for ip version 2498/head 2502/head
Juliana Fajardini [Thu, 8 May 2025 19:05:51 +0000 (16:05 -0300)] 
tests: add checks for ip version

Related to
Task #7047

8 weeks agotests: lua smtplib rule test 2496/head
Jason Ish [Wed, 7 May 2025 17:13:34 +0000 (11:13 -0600)] 
tests: lua smtplib rule test

8 weeks agotests/lua-output-smtp: update for lua lib
Jason Ish [Tue, 6 May 2025 20:43:52 +0000 (14:43 -0600)] 
tests/lua-output-smtp: update for lua lib

8 weeks agotests: requires 8.0.0 for datasets set IP
Eric Leblond [Wed, 7 May 2025 16:19:12 +0000 (18:19 +0200)] 
tests: requires 8.0.0 for datasets set IP

8 weeks agotests: datasets set for IP
Eric Leblond [Tue, 6 May 2025 15:54:01 +0000 (17:54 +0200)] 
tests: datasets set for IP

8 weeks agoja3: adds tests for lua 2493/head
Philippe Antoine [Fri, 2 May 2025 06:51:38 +0000 (08:51 +0200)] 
ja3: adds tests for lua

Ticket: 7605

8 weeks agodetect: adds transactional rules with filesize
Philippe Antoine [Fri, 18 Apr 2025 14:42:57 +0000 (16:42 +0200)] 
detect: adds transactional rules with filesize

Ticket: 7665

2 months agotests: fix double stats record throwing test off 2487/head 2488/head
Victor Julien [Sun, 4 May 2025 06:35:37 +0000 (08:35 +0200)] 
tests: fix double stats record throwing test off

Set longer stats interval just like the test owning the pcap.

2 months agotests: firewall: add basic ssh tests 2486/head
Victor Julien [Tue, 29 Apr 2025 12:55:43 +0000 (14:55 +0200)] 
tests: firewall: add basic ssh tests

2 months agotests: ftpbounce engine name update 2485/head
Victor Julien [Fri, 2 May 2025 15:34:36 +0000 (17:34 +0200)] 
tests: ftpbounce engine name update

2 months agotests: test new suricata.flowintlib 2483/head
Jason Ish [Thu, 1 May 2025 22:50:45 +0000 (16:50 -0600)] 
tests: test new suricata.flowintlib

Ticket: #7487

2 months agossh: adds test with lua and hassh 2475/head 2476/head
Philippe Antoine [Mon, 28 Apr 2025 12:22:17 +0000 (14:22 +0200)] 
ssh: adds test with lua and hassh

Ticket: 7603

2 months agotests: update for new suricata.flowvar lib; test flowvar set 2467/head 2472/head
Jason Ish [Thu, 24 Apr 2025 18:14:55 +0000 (12:14 -0600)] 
tests: update for new suricata.flowvar lib; test flowvar set

2 months agossh: add test for lua output 2466/head
Philippe Antoine [Sat, 19 Apr 2025 19:16:52 +0000 (21:16 +0200)] 
ssh: add test for lua output

Ticket: 7607

2 months agodns: more minimal setup for lua
Philippe Antoine [Sat, 19 Apr 2025 11:51:46 +0000 (13:51 +0200)] 
dns: more minimal setup for lua

2 months agossh: adds test for lua
Philippe Antoine [Sat, 5 Apr 2025 20:54:12 +0000 (22:54 +0200)] 
ssh: adds test for lua

Ticket: 7607

2 months agodetect/ftp: Tests for ftp.dynamic_port 2465/head
Jeff Lucovsky [Sun, 20 Apr 2025 19:32:58 +0000 (15:32 -0400)] 
detect/ftp: Tests for ftp.dynamic_port

Add tests for FTP's dynamic_port -- active and passive.

The ftp-active-dynamic_port-01 test case includes tests for the
comparison operands -- since the implementation uses the U16 matching
and parsing logic, only one test case has the additional test cases.

2 months agohttp1: adds test about request line matching 2464/head
Philippe Antoine [Tue, 22 Apr 2025 12:45:20 +0000 (14:45 +0200)] 
http1: adds test about request line matching

Ticket: 7668

Test that it matches as soon as possible

2 months agotest: test a lua based fast.log 2438/head 2463/head
Jason Ish [Thu, 10 Apr 2025 22:49:37 +0000 (16:49 -0600)] 
test: test a lua based fast.log

2 months agotest: update tests for suricata.rule lib
Jason Ish [Thu, 10 Apr 2025 22:17:13 +0000 (16:17 -0600)] 
test: update tests for suricata.rule lib

Ticket: #7490

2 months agofirewall: test that we drop packet with bad request line 2458/head
Philippe Antoine [Sat, 19 Apr 2025 12:41:41 +0000 (14:41 +0200)] 
firewall: test that we drop packet with bad request line

Ticket: 5739

2 months agoAdd test for brotli content encoding 2457/head
David Beckett [Wed, 16 Nov 2022 16:55:34 +0000 (16:55 +0000)] 
Add test for brotli content encoding

2 months agotests: add tests for loading shipped rules from releases 2454/head
Victor Julien [Mon, 24 Mar 2025 16:39:17 +0000 (17:39 +0100)] 
tests: add tests for loading shipped rules from releases

From 7.0.0..7.0.9 and 6.0.20.

2 months agotests: add tx_cnt tests 2452/head
Eric Leblond [Mon, 31 Mar 2025 09:14:10 +0000 (11:14 +0200)] 
tests: add tx_cnt tests

2 months agowebsocket: add test with decompression
Philippe Antoine [Sat, 29 Mar 2025 21:07:59 +0000 (22:07 +0100)] 
websocket: add test with decompression

Ticket: 7285

2 months agodetect: add test for email.received keyword 2449/head
Alice Akaki [Wed, 9 Apr 2025 21:47:21 +0000 (17:47 -0400)] 
detect: add test for email.received keyword

Ticket: #7599

2 months agotests: bring back 7 support for lua tests
Victor Julien [Fri, 11 Apr 2025 18:23:04 +0000 (20:23 +0200)] 
tests: bring back 7 support for lua tests

2 months agotests: more firewall tests
Victor Julien [Fri, 11 Apr 2025 09:45:48 +0000 (11:45 +0200)] 
tests: more firewall tests

2 months agotests: drop/pass deconfliction updates
Victor Julien [Fri, 11 Apr 2025 07:14:10 +0000 (09:14 +0200)] 
tests: drop/pass deconfliction updates

2 months agodetect: add test for email.url keyword 2442/head
Alice Akaki [Wed, 9 Apr 2025 19:21:21 +0000 (15:21 -0400)] 
detect: add test for email.url keyword

Ticket: #7597

2 months agorun.py: add aggressive-cleanup option 2437/head
Shivani Bhardwaj [Thu, 10 Apr 2025 12:16:33 +0000 (17:46 +0530)] 
run.py: add aggressive-cleanup option

This option enables one to delete an output dir if the tests are
passing. This is useful mostly for QA scenarios where the artifacts are
not really needed if all went well for a test.

2 months agotests: add check for lua rules enabled by default 2433/head 2434/head
Victor Julien [Tue, 8 Apr 2025 08:24:36 +0000 (10:24 +0200)] 
tests: add check for lua rules enabled by default

2 months agodetect: add test for ldap.responses.attribute_type keyword 2430/head
Alice Akaki [Mon, 3 Mar 2025 15:45:14 +0000 (11:45 -0400)] 
detect: add test for ldap.responses.attribute_type keyword

Ticket: #7533

2 months agodetect: add test for ldap.request.attribute_type keyword
Alice Akaki [Thu, 13 Feb 2025 05:20:56 +0000 (01:20 -0400)] 
detect: add test for ldap.request.attribute_type keyword

Ticket: #7533

2 months agotests: Support list checks
Jeff Lucovsky [Fri, 28 Mar 2025 16:57:20 +0000 (12:57 -0400)] 
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.'