]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
21 months agotest/memcap: Validate memcap pressure values 1763/head
Jeff Lucovsky [Sun, 24 Mar 2024 12:17:31 +0000 (08:17 -0400)] 
test/memcap: Validate memcap pressure values

Issue: 6398

This test validates that the memcap pressure stats are no longer in the
global namespace.

Old:
- memcap_pressure
- memcap_pressure_max

New:
- memcap.pressure
- memcap.pressure_max

21 months agotests: add checks for hiding zero counter stats 1753/head
Juliana Fajardini [Wed, 3 Apr 2024 23:13:18 +0000 (20:13 -0300)] 
tests: add checks for hiding zero counter stats

Task #5976

21 months agotests/exception-policy/stats: fix app-layer test
Juliana Fajardini [Thu, 11 Apr 2024 20:17:11 +0000 (17:17 -0300)] 
tests/exception-policy/stats: fix app-layer test

exception-policy-applayer-03 was missing the checks for exception-policy
per-appproto errors.

21 months agotests: check exception policy stats counters 1752/head
Juliana Fajardini [Fri, 17 Feb 2023 20:28:02 +0000 (17:28 -0300)] 
tests: check exception policy stats counters

Edit the existing exception policy tests to check for the new exception
policy stats counters.

Add two more tests, to showcase behavior for exception policy stats
counters when set up to log counters for each app-proto error and
zero-valued counters are enabled (default behavior).

Ticket #5816

21 months agotests: add rule to check for tcp_seq 1750/head 1751/head
Daniel Olatunji [Wed, 31 Jan 2024 15:29:16 +0000 (16:29 +0100)] 
tests: add rule to check for tcp_seq

Related to
Issue: 6353

21 months agotests: add rule to check for tcp/ack 1749/head
Daniel Olatunji [Wed, 31 Jan 2024 15:37:54 +0000 (16:37 +0100)] 
tests: add rule to check for tcp/ack

Related to
Issue: 6354

21 months agorule-grouping: add boundary port tests 1730/head 1731/head
Shivani Bhardwaj [Mon, 25 Mar 2024 13:35:47 +0000 (19:05 +0530)] 
rule-grouping: add boundary port tests

21 months agoport-grouping: add tests for bug 6881 and more 1725/head
Shivani Bhardwaj [Thu, 21 Mar 2024 09:17:39 +0000 (14:47 +0530)] 
port-grouping: add tests for bug 6881 and more

21 months agotests: add bug 6875 test 1717/head
Victor Julien [Wed, 20 Mar 2024 07:17:06 +0000 (08:17 +0100)] 
tests: add bug 6875 test

21 months agotests: update drop and ssh tests for 7 1712/head 1715/head suricata-6.0.17 suricata-7.0.4
Victor Julien [Mon, 18 Mar 2024 16:13:56 +0000 (17:13 +0100)] 
tests: update drop and ssh tests for 7

21 months agoAdds test about ssh new keys 1710/head
Philippe Antoine [Mon, 27 Nov 2023 16:28:47 +0000 (17:28 +0100)] 
Adds test about ssh new keys

Ticket: 6578

21 months agodrop: adds test with a protocol change
Philippe Antoine [Mon, 29 Jan 2024 14:24:47 +0000 (15:24 +0100)] 
drop: adds test with a protocol change

Ticket: 6305

22 months agotests: add frame gap logging tests 1708/head
Victor Julien [Fri, 24 Nov 2023 11:06:19 +0000 (12:06 +0100)] 
tests: add frame gap logging tests

22 months agotests: add various eve payload representation tests
Victor Julien [Mon, 20 Nov 2023 12:25:24 +0000 (13:25 +0100)] 
tests: add various eve payload representation tests

Overlaps and gaps.

22 months agohttp: adds check for request line missing protocol 1705/head 1706/head 1707/head
Philippe Antoine [Wed, 13 Mar 2024 20:33:02 +0000 (21:33 +0100)] 
http: adds check for request line missing protocol

This generates an anomaly

Ticket: 6856

22 months agorule-grouping: add edge case test 1694/head
Shivani Bhardwaj [Sat, 9 Mar 2024 04:19:13 +0000 (09:49 +0530)] 
rule-grouping: add edge case test

22 months agotest: add test for dns.rcode 1687/head 1693/head
Hadiqa Alamdar Bukhari [Tue, 26 Dec 2023 10:00:08 +0000 (15:00 +0500)] 
test: add test for dns.rcode

Feature #6621

22 months agodetect/port: add rule grouping tests 1678/head 1680/head
Shivani Bhardwaj [Wed, 21 Feb 2024 09:50:42 +0000 (15:20 +0530)] 
detect/port: add rule grouping tests

22 months agotest: add test for dns.rrtype 1675/head
Hadiqa Alamdar Bukhari [Fri, 2 Feb 2024 13:38:49 +0000 (18:38 +0500)] 
test: add test for dns.rrtype

Feature #6666

22 months agosip: add tests for sip over tcp 1672/head
Giuseppe Longo [Thu, 13 Apr 2023 16:59:03 +0000 (18:59 +0200)] 
sip: add tests for sip over tcp

22 months agomqtt: frameswith multiple PDUs backport 1669/head
Philippe Antoine [Thu, 22 Feb 2024 20:35:06 +0000 (21:35 +0100)] 
mqtt: frameswith multiple PDUs  backport

Ticket: 6592

22 months agodns: adds test for sshfp 1663/head
Philippe Antoine [Thu, 18 Jan 2024 12:39:47 +0000 (13:39 +0100)] 
dns: adds test for sshfp

22 months agotcp: add a SYN packet test to verify correct flow output 1659/head 1660/head
Lukas Sismis [Tue, 6 Feb 2024 10:54:03 +0000 (11:54 +0100)] 
tcp: add a SYN packet test to verify correct flow output

Ticket: #6733

22 months agohttp: adds another test for http.request_header keyword 1652/head
Philippe Antoine [Wed, 14 Feb 2024 21:16:28 +0000 (22:16 +0100)] 
http: adds another test for http.request_header keyword

Ticket: 6483

22 months agossh: do not enforce pcap_cnt
Philippe Antoine [Tue, 6 Feb 2024 13:52:15 +0000 (14:52 +0100)] 
ssh: do not enforce pcap_cnt

As this is an invalid tcp packet, that should not run any tx
detection on it.

Ticket: 6775

22 months agohttp2: adds test with continuation frames
Philippe Antoine [Thu, 25 Jan 2024 15:00:02 +0000 (16:00 +0100)] 
http2: adds test with continuation frames

Ticket: 5926

22 months agohttp: adds test with chunked as a token
Philippe Antoine [Mon, 12 Feb 2024 13:02:40 +0000 (14:02 +0100)] 
http: adds test with chunked as a token

Ticket: 6415

23 months agofilestore: directionality fix backported to 7 1650/head 1651/head
Philippe Antoine [Thu, 15 Feb 2024 08:24:30 +0000 (09:24 +0100)] 
filestore: directionality fix backported to 7

23 months agoadd test for bug 6617 1649/head
Shivani Bhardwaj [Mon, 18 Dec 2023 08:16:03 +0000 (13:46 +0530)] 
add test for bug 6617

23 months agotest/mqtt: Improve multi PDU parsing 1647/head
Jeff Lucovsky [Wed, 24 Jan 2024 14:43:25 +0000 (09:43 -0500)] 
test/mqtt: Improve multi PDU parsing

Issue: 6592

23 months agocheck-eve: open files with utf-8 encoding 1645/head 1646/head
Jason Ish [Mon, 12 Feb 2024 15:54:07 +0000 (09:54 -0600)] 
check-eve: open files with utf-8 encoding

Not needed in modern versions of Python, but required for older
versions like 3.6.

23 months agoAdds test for http.request_header and http.response_header keywords 1638/head
Philippe Antoine [Fri, 9 Feb 2024 16:30:29 +0000 (17:30 +0100)] 
Adds test for http.request_header and http.response_header keywords

Ticket: 6736

23 months agotests: add multi-tenancy tests
Victor Julien [Wed, 9 Aug 2023 11:12:45 +0000 (13:12 +0200)] 
tests: add multi-tenancy tests

23 months agohttp: adds test with HTTP not being 0.9
Philippe Antoine [Wed, 24 Jan 2024 12:07:11 +0000 (13:07 +0100)] 
http: adds test with HTTP not being 0.9

Ticket: 6643

If the request is junk, and the response is valid HTTP/1.1,
we should handle the response as HTTP/1.1, not HTTP 0.9

23 months agoexception-policy: fix test to be more robust
Philippe Antoine [Tue, 5 Dec 2023 08:26:39 +0000 (09:26 +0100)] 
exception-policy: fix test to be more robust

We do not want to test number of alerts on every pseudo-packets

Ticket: 6578

23 months agotls: do not check pcap_cnt
Philippe Antoine [Mon, 27 Nov 2023 19:02:11 +0000 (20:02 +0100)] 
tls: do not check pcap_cnt

as a tls event can come from a flush after setting no_inspection

23 months agotests/requires: test failure case 1610/head 1611/head 1612/head suricata-6.0.16 suricata-7.0.3
Jason Ish [Wed, 24 Jan 2024 15:29:36 +0000 (09:29 -0600)] 
tests/requires: test failure case

Break the requires test into 2 tests.  One that runs to success so we
can verify the output.

A second that is expected to fail due to fatal init errors.

Ticket: #6710

23 months agodetect-pcre: add assorted tests 1605/head
Modupe Falodun [Fri, 4 Mar 2022 10:41:30 +0000 (11:41 +0100)] 
detect-pcre: add assorted tests

Bring previously Suricata unit tests as suricata-verify tests.

Conversions mapping:
- detect-pcre-01: DetectPcreModifPTest04
- detect-pcre-02: DetectPcreModifPTest05
- detect-pcre-03: DetectPcreTestSig01-03
- detect-pcre-04: DetectPcreTestSig09-16
- detect-pcre-05: DetectPcreFlowvarCapture01- 03

Task #6147

23 months agoAdds test that we parse http not as 0.9 1602/head
Philippe Antoine [Thu, 21 Dec 2023 12:17:15 +0000 (13:17 +0100)] 
Adds test that we parse http not as 0.9

Ticket: 6643

23 months agotests/requires: fix for suricata 8 1601/head
Jason Ish [Mon, 22 Jan 2024 14:33:07 +0000 (08:33 -0600)] 
tests/requires: fix for suricata 8

Suricata 8 will have 7 rules skipped, Suricata 7.0.3+ will have 6 rules
skipped as there is a rule in here for Suricata >= 7.0.3 but less than
8.

23 months agodetect-engine-state: add assorted tests
Daniel Olatunji [Fri, 19 Jan 2024 07:39:19 +0000 (08:39 +0100)] 
detect-engine-state: add assorted tests

Task: 6146
Add previously Suricata unittests as Suricata-verify tests.

23 months agocheck-eve: test for duplicate json keys
Jason Ish [Wed, 3 Jan 2024 20:33:26 +0000 (14:33 -0600)] 
check-eve: test for duplicate json keys

Add a duplicate key check to check-eve. If a duplicate key is found
in a JSON record, the test will fail with a schema error.

23 months agotests/requires: updates to support 7.0.3 1596/head
Jason Ish [Sat, 20 Jan 2024 17:01:12 +0000 (10:01 -0700)] 
tests/requires: updates to support 7.0.3

23 months agotests/swf: SWF deprecation has been deprecated
Jeff Lucovsky [Sat, 20 Jan 2024 15:49:47 +0000 (10:49 -0500)] 
tests/swf: SWF deprecation has been deprecated

Issue: 6606

Remove deprecated deprecation notice for SWF.

23 months agotests: update smb.keyword min suri version 1593/head
jason taylor [Wed, 29 Nov 2023 18:35:31 +0000 (18:35 +0000)] 
tests: update smb.keyword min suri version

Signed-off-by: jason taylor <jtfas90@gmail.com>
23 months agotests: update tests for smb.version keyword
jason taylor [Mon, 28 Aug 2023 21:43:10 +0000 (21:43 +0000)] 
tests: update tests for smb.version keyword

Signed-off-by: jason taylor <jtfas90@gmail.com>
23 months agosmb-smb_version: update test to match also responses
Eloy Pérez González [Tue, 1 Mar 2022 14:56:06 +0000 (15:56 +0100)] 
smb-smb_version: update test to match also responses

23 months agosmb-smb_version: new test
Eloy Pérez González [Mon, 14 Feb 2022 09:58:34 +0000 (10:58 +0100)] 
smb-smb_version: new test

23 months agotransform: test strip-pseudo-headers from version 7 1581/head 1590/head
Philippe Antoine [Tue, 16 Jan 2024 10:55:31 +0000 (11:55 +0100)] 
transform: test strip-pseudo-headers from version 7

Ticket: 6614

2 years agotest: adds test for strip_pseudo_headers transform 1580/head
Philippe Antoine [Tue, 12 Dec 2023 08:30:18 +0000 (09:30 +0100)] 
test: adds test for strip_pseudo_headers transform

Ticket: 6546

2 years agorequires: check stat; unknown requires keyword 1570/head
Jason Ish [Tue, 19 Dec 2023 18:10:50 +0000 (12:10 -0600)] 
requires: check stat; unknown requires keyword

2 years agostats: add checks for drop reason counters 1569/head
Juliana Fajardini [Wed, 26 Jul 2023 15:18:58 +0000 (12:18 -0300)] 
stats: add checks for drop reason counters

Leaving checks for stream reassembly aside as those were already added
by another commit.

Related to Task #6230
Task #6571

2 years agotest: http2 user info now works from version 7
Philippe Antoine [Sun, 19 Nov 2023 20:02:17 +0000 (21:02 +0100)] 
test: http2 user info now works from version 7

After backports have been merged

2 years agorunner: fix python escaping warnings
Jason Ish [Tue, 14 Nov 2023 17:29:45 +0000 (11:29 -0600)] 
runner: fix python escaping warnings

2 years agoreadme: remove extraneous whitespace
Jason Ish [Wed, 28 Jun 2023 22:10:52 +0000 (16:10 -0600)] 
readme: remove extraneous whitespace

2 years agorunner: allow a test to be retried
Jason Ish [Wed, 28 Jun 2023 21:22:58 +0000 (15:22 -0600)] 
runner: allow a test to be retried

Add a new parameter, retry that takes count. If the checks fail, the
test will be re-run. This could help us deal with failures in tests
that are sensitive to timing.

2 years agotest: tests for requires keyword 1558/head
Jason Ish [Fri, 1 Dec 2023 21:18:31 +0000 (15:18 -0600)] 
test: tests for requires keyword

Feature: #5972

2 years agoreadme: example of requiring files to exist
Jason Ish [Fri, 1 Dec 2023 21:04:19 +0000 (15:04 -0600)] 
readme: example of requiring files to exist

2 years agoAdd test about enip stats with _udp prefix
Philippe Antoine [Fri, 1 Dec 2023 20:56:03 +0000 (21:56 +0100)] 
Add test about enip stats with _udp prefix

Ticket: 6304

2 years agotest/pgsql: update cancel request min-version test 1553/head 1554/head
Juliana Fajardini [Fri, 15 Dec 2023 18:46:28 +0000 (15:46 -0300)] 
test/pgsql: update cancel request min-version test

Related to
Bug #6581

2 years agotests: add pgsql cancel request tests 1552/head
Juliana Fajardini [Fri, 8 Dec 2023 20:47:19 +0000 (17:47 -0300)] 
tests: add pgsql cancel request tests

Showcase CancelRequest postgresql message output.

Related to
Task #6577

2 years agohttp2: http_response_line exact in main7 1549/head
Philippe Antoine [Wed, 13 Dec 2023 19:25:41 +0000 (20:25 +0100)] 
http2: http_response_line exact in main7

Ticket: 6547

2 years agotest: new test for dns.query.name 1544/head
Jason Ish [Wed, 15 Nov 2023 17:21:24 +0000 (11:21 -0600)] 
test: new test for dns.query.name

2 years agotest: new test for dns.answer.name
Jason Ish [Wed, 15 Nov 2023 17:21:12 +0000 (11:21 -0600)] 
test: new test for dns.answer.name

2 years agotests: add rule type check for flowbits
Hadiqa Alamdar Bukhari [Wed, 13 Dec 2023 11:23:16 +0000 (16:23 +0500)] 
tests: add rule type check for flowbits

Task #6309

2 years agohttp2: check for http_response_line exact content 1541/head
Philippe Antoine [Thu, 23 Nov 2023 09:13:46 +0000 (10:13 +0100)] 
http2: check for http_response_line exact content

Ticket: 6547

2 years agodetect/transform/header_lowercase: support from 7.0.3 1533/head 1537/head
Philippe Antoine [Tue, 12 Dec 2023 07:52:25 +0000 (08:52 +0100)] 
detect/transform/header_lowercase: support from 7.0.3

2 years agotests/pgsql: test pgsql probing bug for version 7 1531/head
Juliana Fajardini [Wed, 6 Dec 2023 14:47:08 +0000 (11:47 -0300)] 
tests/pgsql: test pgsql probing bug for version 7

2 years agotests/pgsql: update password log disabled msgs 1517/head
Juliana Fajardini [Tue, 5 Dec 2023 13:53:11 +0000 (10:53 -0300)] 
tests/pgsql: update password log disabled msgs

Removing the white spaces from this log output, as these can cause
issues with grepping commands querying log results, and also doesn't
show a consistent behavior among different environments.

2 years agotests: add test for pgsql probe bug 6080 1506/head 1513/head
Juliana Fajardini [Tue, 28 Nov 2023 21:19:48 +0000 (18:19 -0300)] 
tests: add test for pgsql probe bug 6080

Add test for pgsql probing function bug 6080.
Crafted pcap.

Related to
Bug #6080

2 years agokrb5: improves check for alert app-layer data 1488/head
Philippe Antoine [Fri, 12 May 2023 10:28:05 +0000 (12:28 +0200)] 
krb5: improves check for alert app-layer data

2 years agotftp: improves check for alert app-layer data
Philippe Antoine [Thu, 11 May 2023 09:21:32 +0000 (11:21 +0200)] 
tftp: improves check for alert app-layer data

2 years agoftp: improves check for alert app-layer data
Philippe Antoine [Thu, 11 May 2023 09:21:11 +0000 (11:21 +0200)] 
ftp: improves check for alert app-layer data

2 years agotest: adds test for header_lowercase transform 1479/head 1486/head
Philippe Antoine [Thu, 9 Nov 2023 09:40:02 +0000 (10:40 +0100)] 
test: adds test for header_lowercase transform

2 years agomqtt: add test case for protocol string keyword 1476/head
Sascha Steinbiss [Wed, 11 Oct 2023 20:21:46 +0000 (22:21 +0200)] 
mqtt: add test case for protocol string keyword

Ticket:  OISF#6396

2 years agotests: fix requirements to pass on 6 and 7 1471/head
Victor Julien [Fri, 17 Nov 2023 11:33:45 +0000 (12:33 +0100)] 
tests: fix requirements to pass on 6 and 7

2 years agogithub-ci: add main-7.0.x 1470/head
Jason Ish [Thu, 16 Nov 2023 21:45:11 +0000 (15:45 -0600)] 
github-ci: add main-7.0.x

2 years agotests: add more uricontent tests 1469/head
Juliana Fajardini [Tue, 24 Oct 2023 19:51:13 +0000 (16:51 -0300)] 
tests: add more uricontent tests

2 years agodetect-uricontent: add tests
Modupe Falodun [Wed, 9 Feb 2022 12:14:09 +0000 (13:14 +0100)] 
detect-uricontent: add tests

Task: 4911

2 years agotests/tcp-hdr: actually test tcp-hdr keyword
Juliana Fajardini [Mon, 23 Oct 2023 20:01:37 +0000 (17:01 -0300)] 
tests/tcp-hdr: actually test tcp-hdr keyword

Noticed that the tcp-hdr keyword test rule was actually using tcp.mss.
Adjusted it to use tcp.hdr instead.

2 years agotests: add tests for tls.cert_chain_len
jason taylor [Thu, 12 Oct 2023 13:31:12 +0000 (13:31 +0000)] 
tests: add tests for tls.cert_chain_len

Ticket: #6386

Signed-off-by: jason taylor <jtfas90@gmail.com>
2 years agotests: add test for smtp LF post line limit
Shivani Bhardwaj [Wed, 8 Feb 2023 11:32:29 +0000 (17:02 +0530)] 
tests: add test for smtp LF post line limit

2 years agosmtp: add test for cmd after long line w LF
Shivani Bhardwaj [Sat, 6 May 2023 11:43:03 +0000 (17:13 +0530)] 
smtp: add test for cmd after long line w LF

2 years agosmtp: add test for long DATA post boundary
Shivani Bhardwaj [Fri, 5 May 2023 08:24:15 +0000 (13:54 +0530)] 
smtp: add test for long DATA post boundary

2 years agosmtp: add test for bug 6053
Shivani Bhardwaj [Tue, 30 May 2023 15:35:18 +0000 (21:05 +0530)] 
smtp: add test for bug 6053

2 years agotests: adds a test for http2 with userinfo in uri 1468/head
Philippe Antoine [Tue, 7 Nov 2023 16:22:14 +0000 (17:22 +0100)] 
tests: adds a test for http2 with userinfo in uri

Ticket: #6426

2 years agotest/transform: Tests for case changing transforms
Jeff Lucovsky [Sat, 11 Nov 2023 08:50:21 +0000 (03:50 -0500)] 
test/transform: Tests for case changing transforms

Issue: 6439

Tests for case-changing transforms:
- to_lowercase
- to_uppercase

2 years agoAdds a test about flow.pkts_toclient keyword
Philippe Antoine [Tue, 20 Jun 2023 13:56:19 +0000 (15:56 +0200)] 
Adds a test about flow.pkts_toclient keyword

And the similar keywords about packets and bytes of a flow

2 years agotests: fix distance test for 7 and 8
Victor Julien [Thu, 16 Nov 2023 09:38:59 +0000 (10:38 +0100)] 
tests: fix distance test for 7 and 8

2 years agotests: Add a test for http2 authority mismatch event 1455/head 1456/head
Philippe Antoine [Mon, 6 Nov 2023 15:35:03 +0000 (16:35 +0100)] 
tests: Add a test for http2 authority mismatch event

Ticket: #6425

2 years agotests: add a test for a bug 6278 1452/head
Lukas Sismis [Wed, 23 Aug 2023 11:32:26 +0000 (13:32 +0200)] 
tests: add a test for a bug 6278

tests include:
  - non-existent user
  - NULL user (empty user string)

2 years agobug-4623: remove version check 1450/head 1451/head
Shivani Bhardwaj [Tue, 31 Oct 2023 08:56:48 +0000 (14:26 +0530)] 
bug-4623: remove version check

2 years agotest: test for empty dns/eve formats 1448/head
Jason Ish [Fri, 27 Oct 2023 18:50:25 +0000 (12:50 -0600)] 
test: test for empty dns/eve formats

Test that when dns/eve "formats" is empty, it uses the default of all.

Bug: #6420

2 years agodetect/bytejump: Test from issue 4623 1445/head
Jeff Lucovsky [Fri, 27 Oct 2023 13:00:57 +0000 (09:00 -0400)] 
detect/bytejump: Test from issue 4623

Issue: 4623

This commit uses the pcap and rules from issue 4623 to validate the
fixes.

2 years agodetect/bytejump: remove version check 1429/head suricata-6.0.15 suricata-7.0.2
Shivani Bhardwaj [Thu, 5 Oct 2023 07:06:56 +0000 (12:36 +0530)] 
detect/bytejump: remove version check

2 years agotests: add bug 6402 test 1422/head 1428/head
Victor Julien [Fri, 13 Oct 2023 14:18:56 +0000 (16:18 +0200)] 
tests: add bug 6402 test

2 years agotests: add test for issue 6397 1421/head
Victor Julien [Thu, 12 Oct 2023 11:52:54 +0000 (13:52 +0200)] 
tests: add test for issue 6397

2 years agoAdds test for quic v2 1404/head
Philippe Antoine [Wed, 27 Sep 2023 11:57:33 +0000 (13:57 +0200)] 
Adds test for quic v2

2 years agotests: add rule type check for iptops
Juliana Fajardini [Fri, 15 Sep 2023 01:30:48 +0000 (22:30 -0300)] 
tests: add rule type check for iptops

Related to
Task #6348

2 years agodetect/bytejump: Handle post_offset changes 1403/head
Jeff Lucovsky [Fri, 8 Sep 2023 14:25:15 +0000 (10:25 -0400)] 
detect/bytejump: Handle post_offset changes

Issue: 4624

Update test case and add one to reflect post_offset handling
differences. post_offset values that move before the buffer are treated
as though they move to the buffer start.