]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
2 years agodecode-event: Add test for too small UDP and TCP packets 1263/head
Cole Dishington [Wed, 24 May 2023 23:25:08 +0000 (11:25 +1200)] 
decode-event: Add test for too small UDP and TCP packets

Add test for IPv4 and IPv6 packets that set proto/next-header to UDP and
TCP but have no payload.

Bug: #6086.

2 years agotests: add check for bug 6149
Juliana Fajardini [Wed, 14 Jun 2023 22:56:11 +0000 (19:56 -0300)] 
tests: add check for bug 6149

Related to
Bug #6149

2 years agodatasets: test to load invalid encoded string
Shivani Bhardwaj [Wed, 14 Jun 2023 12:26:57 +0000 (17:56 +0530)] 
datasets: test to load invalid encoded string

2 years agorun.py: allow matches on substrings in yaml
Shivani Bhardwaj [Wed, 14 Jun 2023 12:27:08 +0000 (17:57 +0530)] 
run.py: allow matches on substrings in yaml

2 years agogitignore: ignore csv file generated by test
Juliana Fajardini [Mon, 13 Mar 2023 15:26:25 +0000 (12:26 -0300)] 
gitignore: ignore csv file generated by test

datasets-bug-5109 test always generates a csv file. Make sure we don't
mistankenly add it to git.

2 years agotests: add test for multi-eve logging
Juliana Fajardini [Mon, 13 Mar 2023 11:34:54 +0000 (08:34 -0300)] 
tests: add test for multi-eve logging

2 years agotest: add test for bug 6109
Juliana Fajardini [Fri, 2 Jun 2023 00:42:21 +0000 (21:42 -0300)] 
test: add test for bug 6109

In IDS mode, with midstream disabled, it seems that the exception policy
'reject' is applying actions that should only be taken in IPS mode. This
leads to the flow being dropped (or logged as such?) in IDS mode. This
test showcases this.

Bug #6109

2 years agotests: add rule types check
Victor Julien [Tue, 23 May 2023 08:03:06 +0000 (10:03 +0200)] 
tests: add rule types check

2 years agotests/datasets-parent-path: skip filter checks on windows 1250/head
Jason Ish [Wed, 14 Jun 2023 17:50:56 +0000 (10:50 -0700)] 
tests/datasets-parent-path: skip filter checks on windows

The test is still run as validating the exit code is still useful.

2 years agorun.py: allow python lambda expression for requires
Jason Ish [Wed, 14 Jun 2023 17:49:47 +0000 (10:49 -0700)] 
run.py: allow python lambda expression for requires

Add a new require type, "lambda" which will require the Python lambda
expression to return a truthy value.

2 years agorun.py: use suricata_bin for suricata binary
Jason Ish [Wed, 14 Jun 2023 17:18:16 +0000 (10:18 -0700)] 
run.py: use suricata_bin for suricata binary

suricata_bin is set correctly on startup for Windows or Linux. Fixes
running suricata-verify on certain Windows environments.

2 years agotests/datasets: test for dataset write disabled
Jason Ish [Tue, 6 Jun 2023 22:17:24 +0000 (16:17 -0600)] 
tests/datasets: test for dataset write disabled

Test the configuration flag to disable dataset writes from rules.

Ticket: #6123

2 years agotests/datasets: test absolute and parent directory paths
Jason Ish [Tue, 6 Jun 2023 18:29:42 +0000 (12:29 -0600)] 
tests/datasets: test absolute and parent directory paths

Test that Suricata fails to load rules that use a state path with an
absolute filename, or contains a traversal into a parent directory is
not allowed.

Ticket: #6118

2 years agoreadme: add exit-code example
Jason Ish [Tue, 6 Jun 2023 18:19:46 +0000 (12:19 -0600)] 
readme: add exit-code example

Document how a specific exit-code can be tested for.

2 years agolua: enable lua rules for tests that use lua rules
Jason Ish [Wed, 7 Jun 2023 22:50:53 +0000 (16:50 -0600)] 
lua: enable lua rules for tests that use lua rules

2 years agotests/midstream: update test with midstream-policy 1247/head
Juliana Fajardini [Tue, 30 May 2023 22:12:14 +0000 (19:12 -0300)] 
tests/midstream: update test with midstream-policy

exception-policy-midstream-03: make README more explanatory.
bug-2491-02: adjust midstream-policy config value, as "drop-flow" is no
longer valid when midstream is enabled.

Related to
Bug #5825

2 years agotests: add bug-5825 tests for ips mode
Juliana Fajardini [Wed, 24 May 2023 20:26:30 +0000 (17:26 -0300)] 
tests: add bug-5825 tests for ips mode

Related to
Bug #5825

2 years agotests: add exception policy tests for midstream ids
Juliana Fajardini [Wed, 19 Apr 2023 18:25:25 +0000 (15:25 -0300)] 
tests: add exception policy tests for midstream ids

Related to
Bug #5825

2 years agoalert-testmyids: add target to rule 1243/head
Jason Ish [Fri, 5 May 2023 21:12:16 +0000 (15:12 -0600)] 
alert-testmyids: add target to rule

Choose a simple test to add the target keyword to as no other tests do
this. This will excercise the "source" and "target" fields in the JSON
schema.

2 years agotests/content: Validate dist/with length checks
Jeff Lucovsky [Wed, 7 Dec 2022 14:57:38 +0000 (09:57 -0500)] 
tests/content: Validate dist/with length checks

Ticket: 5740

This commit adds tests that validate the distance and within values are
constrained appropriately to the range [0, 1045876]

2 years agorun: Improve 'lt' version checking
Jeff Lucovsky [Fri, 2 Dec 2022 14:27:22 +0000 (09:27 -0500)] 
run: Improve 'lt' version checking

This commit improves version checking for the 'less than' case
the Suricata version exceeds the `lt-version` value.

E.g., when Suricata is 7.0.0 and the lt-version specifies 6.0.1

2 years agotest/vlan: 3-level VLAN test
Jeff Lucovsky [Mon, 8 Aug 2022 12:20:49 +0000 (08:20 -0400)] 
test/vlan: 3-level VLAN test

Issue: 2816

This commit tests for 3-level VLAN encapsulations.

2 years agohttp: check that custom logging does not collide
Philippe Antoine [Wed, 30 Nov 2022 15:38:52 +0000 (16:38 +0100)] 
http: check that custom logging does not collide

for content range header for instance

2 years agogithub: add pull request template
Jason Ish [Fri, 12 May 2023 20:02:22 +0000 (14:02 -0600)] 
github: add pull request template

For now it just asks for a Redmine ticket URL. We can use this to link
Suricata-Verify pull requests to Suricata features and pull requests,
potentially creating a script to update S-V pull requests when the
ticket status changes, or a Suricata pull request has been merged.

2 years agohttp2: move http.request_header keyword to new test 1238/head
Philippe Antoine [Thu, 23 Mar 2023 09:46:12 +0000 (10:46 +0100)] 
http2: move http.request_header keyword to new test

as it requires min version 7, and we do not want to mix it
with rules that already worked for version 6

2 years agoftp: fix command_data length 1233/head
Shivani Bhardwaj [Wed, 31 May 2023 07:46:15 +0000 (13:16 +0530)] 
ftp: fix command_data length

2 years agotests: fix sip based drop test for 6.0.x 1228/head
Victor Julien [Sat, 3 Jun 2023 06:27:33 +0000 (08:27 +0200)] 
tests: fix sip based drop test for 6.0.x

2 years agotests: update for fixed rate_filter drops 1224/head
Victor Julien [Thu, 1 Jun 2023 08:56:13 +0000 (10:56 +0200)] 
tests: update for fixed rate_filter drops

2 years agotests: fix drop tests
Victor Julien [Wed, 31 May 2023 14:14:34 +0000 (16:14 +0200)] 
tests: fix drop tests

2 years agotests: test flow droped but applayer event logged 1221/head
Juliana Fajardini [Mon, 22 Aug 2022 18:29:03 +0000 (15:29 -0300)] 
tests: test flow droped but applayer event logged

It seems that Suricata will log an applayer event for a dropped flow,
for the second packet of the flow. This test demonstrates such behavior,
so we can investigate it.

Related to
Task #5510

2 years agorun.py: Add dir in the output 1217/head
Alice Akaki [Tue, 1 Nov 2022 05:05:00 +0000 (01:05 -0400)] 
run.py: Add dir in the output

These changes were based on Blithe Brandon's PR #344
Task: #3144

2 years agotests: fix smtp long data line test on 6.0.x 1215/head
Victor Julien [Wed, 24 May 2023 07:51:17 +0000 (09:51 +0200)] 
tests: fix smtp long data line test on 6.0.x

2 years agodetect-icmp-id: add tests
Alice Akaki [Mon, 31 Oct 2022 23:52:05 +0000 (19:52 -0400)] 
detect-icmp-id: add tests

Task: #5622

2 years agotests: add test for flow.memcap exception policy
Juliana Fajardini [Mon, 20 Mar 2023 17:14:30 +0000 (14:14 -0300)] 
tests: add test for flow.memcap exception policy

2 years agossh: do not check for useless tx_id always 0 1209/head
Philippe Antoine [Wed, 17 May 2023 14:16:07 +0000 (16:16 +0200)] 
ssh: do not check for useless tx_id always 0

2 years agohttp2: adds more signature keywords test
Philippe Antoine [Mon, 3 Apr 2023 12:33:39 +0000 (14:33 +0200)] 
http2: adds more signature keywords test

Ticket: #4067

2 years agogithub-ci: fix almalinux version 1206/head
Jason Ish [Wed, 17 May 2023 13:35:17 +0000 (15:35 +0200)] 
github-ci: fix almalinux version

AlmaLinux:latest is now 9, and this job is for AlmaLinux 8.

2 years agosmtp: add test for long DATA line 1199/head
Shivani Bhardwaj [Fri, 21 Apr 2023 11:21:53 +0000 (16:51 +0530)] 
smtp: add test for long DATA line

2 years agotests: add test for bug 2917
Shivani Bhardwaj [Thu, 9 Feb 2023 17:15:09 +0000 (22:45 +0530)] 
tests: add test for bug 2917

2 years agodetect/content: Add negated endswith tests
Jeff Lucovsky [Mon, 27 Mar 2023 13:04:31 +0000 (09:04 -0400)] 
detect/content: Add negated endswith tests

Issue: 5541

This commit adds test cases for the issue discovered in 5541 so that
negated endswith are handled properly.

3 tests
- Negated endswith content that *should* match
- Negated endswith content that *shouldn't* match
- Negated endswith content that *should* match with a content match
  following it

For versions greater than 6.0.11

2 years agotest/run: Support `gt-version` verb
Jeff Lucovsky [Wed, 19 Apr 2023 12:43:36 +0000 (08:43 -0400)] 
test/run: Support `gt-version` verb

This commit adds support for the `gt-version` verb. This verb is used
when the current version is X but the test(s) is(are) only supported in
versions greater than X.

2 years agorfb: test rfb frames
Haleema Khan [Thu, 22 Dec 2022 09:01:45 +0000 (14:01 +0500)] 
rfb: test rfb frames

2 years agoAdds test for krb5_msg_type keyword 1198/head
Eloy Pérez González [Fri, 22 Oct 2021 10:44:03 +0000 (12:44 +0200)] 
Adds test for krb5_msg_type keyword

2 years agosmb: update pcap for test about ntlmssp
Philippe Antoine [Thu, 4 May 2023 07:11:46 +0000 (09:11 +0200)] 
smb: update pcap for test about ntlmssp

Turning off a ntlmssp bitflag, so that we are sure we pick the
right bit which is set for version parsing.

2 years agodetect: adds test with bsize:0
Philippe Antoine [Thu, 27 Apr 2023 09:52:07 +0000 (11:52 +0200)] 
detect: adds test with bsize:0

2 years agoAdds test about http.connection with to client 1157/head
Philippe Antoine [Wed, 29 Mar 2023 17:06:12 +0000 (19:06 +0200)] 
Adds test about http.connection with to client

Ticket: #5746

2 years agoAdds test about http mime with truncated file 1181/head suricata-6.0.11 suricata-6.0.12
Philippe Antoine [Mon, 30 Jan 2023 08:41:03 +0000 (09:41 +0100)] 
Adds test about http mime with truncated file

due to request.body_limit configuration value

2 years agotests: add test for bug 5867 FP drop log events
Juliana Fajardini [Thu, 16 Mar 2023 21:48:21 +0000 (18:48 -0300)] 
tests: add test for bug 5867 FP drop log events

Bug #5867

2 years agotests: fix smb bug 5770 pcap
Victor Julien [Tue, 18 Apr 2023 07:12:05 +0000 (09:12 +0200)] 
tests: fix smb bug 5770 pcap

2 years agotests: add test for bug 5881 stream overlap issue
Victor Julien [Tue, 28 Feb 2023 11:00:31 +0000 (12:00 +0100)] 
tests: add test for bug 5881 stream overlap issue

2 years agotests: add tcp fast open tests
Victor Julien [Mon, 27 Feb 2023 20:42:17 +0000 (21:42 +0100)] 
tests: add tcp fast open tests

2 years agoAdds test about smb2 for bug 5786 1174/head
Philippe Antoine [Thu, 2 Feb 2023 15:07:24 +0000 (16:07 +0100)] 
Adds test about smb2 for bug 5786

2 years agoAdds smb test for ticket 5770
Philippe Antoine [Tue, 27 Dec 2022 21:50:19 +0000 (22:50 +0100)] 
Adds smb test for ticket 5770

2 years agotests: add tests for unseen http midstream traffic
Juliana Fajardini [Thu, 24 Feb 2022 18:48:53 +0000 (18:48 +0000)] 
tests: add tests for unseen http midstream traffic

In a pcap where just `http` midstream traffic is seen, Suri is
unable to see the packtes as `http` traffic (Wireshark tags them
correctly).

This also seems to result in Suri sometimes not adding the packet
payload to the associated alert event in the eve-log.

`bug-5437-01` has the pcap where http packets are not seen `bug-5437-02`
has a more complete pcap, and the same packets are properly
identified by Suri.

Related to
Bug #5437

2 years agoAdds test with multiple HTTP 100 responses
Philippe Antoine [Mon, 20 Mar 2023 12:15:20 +0000 (13:15 +0100)] 
Adds test with multiple HTTP 100 responses

2 years agotests: test defrag exception policy with drop-flow
Juliana Fajardini [Thu, 23 Mar 2023 21:09:33 +0000 (18:09 -0300)] 
tests: test defrag exception policy with drop-flow

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.

2 years agoAdds test about ftp port when memcap is reached
Philippe Antoine [Wed, 28 Dec 2022 14:53:35 +0000 (15:53 +0100)] 
Adds test about ftp port when memcap is reached

Ticket: #5701

2 years agosmb: fix test for master6
Philippe Antoine [Mon, 3 Apr 2023 07:04:27 +0000 (09:04 +0200)] 
smb: fix test for master6

Difference with 7 is missing feature file deletion
Addition since 6.0.0 is async response cf smb2.aid wireshark filter

Ticket: #5820

2 years agotests: add http_uri parsing test 1173/head
Victor Julien [Mon, 27 Mar 2023 10:21:41 +0000 (12:21 +0200)] 
tests: add http_uri parsing test

2 years agotests: add stream_size parsing test
Victor Julien [Mon, 27 Mar 2023 10:21:09 +0000 (12:21 +0200)] 
tests: add stream_size parsing test

2 years agotests: add rules testing with engine analysis
Victor Julien [Fri, 17 Mar 2023 08:21:07 +0000 (09:21 +0100)] 
tests: add rules testing with engine analysis

Tests check engine-analysis representation of rules.

2 years agotests: ET open rule parsing test: update rules
Victor Julien [Fri, 17 Mar 2023 17:16:12 +0000 (18:16 +0100)] 
tests: ET open rule parsing test: update rules

2 years agotests: add 5929 test for http2
Victor Julien [Thu, 23 Mar 2023 11:21:44 +0000 (12:21 +0100)] 
tests: add 5929 test for http2

2 years agotests: add ticket 5929 test
Victor Julien [Thu, 23 Mar 2023 08:36:55 +0000 (09:36 +0100)] 
tests: add ticket 5929 test

2 years agobase64_data: add tests for bug 5885 1163/head
Shivani Bhardwaj [Thu, 9 Mar 2023 07:34:35 +0000 (13:04 +0530)] 
base64_data: add tests for bug 5885

2 years agotests/quic-ietf: fix test 1158/head
Jason Ish [Wed, 8 Mar 2023 22:10:01 +0000 (16:10 -0600)] 
tests/quic-ietf: fix test

Suricata was matching on the wrong ja3.

2 years agomqtt-events-unintroduced: fix test
Jason Ish [Sun, 19 Feb 2023 01:00:50 +0000 (19:00 -0600)] 
mqtt-events-unintroduced: fix test

On inspection of the pcap, the signature 2226005 should only alert
once.

Issue: 5799

2 years agomqtt-events-missing-connect: fix test
Jason Ish [Sun, 19 Feb 2023 00:58:13 +0000 (18:58 -0600)] 
mqtt-events-missing-connect: fix test

On inspection of the pcap, the signature 2226000 should only alert once.

Issue: 5799

2 years agomqtt-events-invalid-qos: fix test
Jason Ish [Fri, 17 Feb 2023 18:34:36 +0000 (12:34 -0600)] 
mqtt-events-invalid-qos: fix test

On inspection of the pcap, the signature 2226006 should only alert once.

Issue: 5799

2 years agotest: issue 4759
Jason Ish [Fri, 17 Feb 2023 18:33:15 +0000 (12:33 -0600)] 
test: issue 4759

2 years agotests: fix exception test pcap paths 1156/head
Victor Julien [Tue, 28 Mar 2023 15:35:31 +0000 (17:35 +0200)] 
tests: fix exception test pcap paths

2 years agosmtp-eve: fix filesize and version check
Shivani Bhardwaj [Fri, 10 Mar 2023 05:38:09 +0000 (11:08 +0530)] 
smtp-eve: fix filesize and version check

Earlier, the CRLFs that were a part of the file were also stripped off
as a part of finding and stripping the delimiters in the MIME handler.
This was fixed as a part of
https://redmine.openinfosecfoundation.org/issues/5725.
This patch fixes the test too to reflect the fix.

Ticket: 5821

2 years agofile: Add tests for file_data prefilter keyword
Haleema Khan [Tue, 14 Feb 2023 13:27:10 +0000 (18:27 +0500)] 
file: Add tests for file_data prefilter keyword

Tests the `prefilter` keyword for `file_data` and `file.data`

Ticket #5801

2 years agocreatest: update the default README
Shivani Bhardwaj [Mon, 20 Feb 2023 05:26:03 +0000 (10:56 +0530)] 
createst: update the default README

2 years agocreatest: Create a default README with every test
Alice Akaki [Thu, 24 Nov 2022 18:00:12 +0000 (14:00 -0400)] 
createst: Create a default README with every test

Feature: #5210

2 years agotls: add test for tls.subject keyword
Haleema Khan [Tue, 24 Jan 2023 19:50:09 +0000 (00:50 +0500)] 
tls: add test for tls.subject keyword

Adds tests for `tls.subject` legacy keyword and `tls.cert_subject` new keyword.
Ticket #5544

2 years agotls: add test for tls.issuerdn keyword
Haleema Khan [Tue, 24 Jan 2023 13:59:31 +0000 (18:59 +0500)] 
tls: add test for tls.issuerdn keyword

Adds tests for `tls.issuerdn` legacy keyword and `tls.cert_issuer` new keyword.
Ticket #5544

2 years agotls: organize tls tests into folders
Haleema Khan [Mon, 13 Feb 2023 09:42:16 +0000 (14:42 +0500)] 
tls: organize tls tests into folders

2 years agottl: add tests for prefilter keyword for ipv6 packets
Haleema Khan [Fri, 3 Feb 2023 18:49:27 +0000 (23:49 +0500)] 
ttl: add tests for prefilter keyword for ipv6 packets

Ticket #5800

2 years agoreadme: remove mention to pcapng file type
Juliana Fajardini [Wed, 1 Feb 2023 20:19:10 +0000 (17:19 -0300)] 
readme: remove mention to pcapng file type

Since we're not accepting this format for now, better not to be
misleading.

2 years agotest: Pin minimum version on eve output/smb2 tests 1137/head
Jeff Lucovsky [Wed, 1 Mar 2023 14:17:51 +0000 (09:17 -0500)] 
test: Pin minimum version on eve output/smb2 tests

This PR sets the minimum version for tests changed to reflect new or
modified behavior in versions past mater-6.0.x

2 years agotests: Create tests for master-6.0.x branch
Jeff Lucovsky [Wed, 1 Mar 2023 14:16:36 +0000 (09:16 -0500)] 
tests: Create tests for master-6.0.x branch

This commit introduces master-6.0.x specific tests that cover areas
where functionality is improved or changing for later versions.

2 years agotests: add test for bug 5783 1132/head
Lancer Cheng [Wed, 1 Feb 2023 10:45:33 +0000 (10:45 +0000)] 
tests: add test for bug 5783

2 years agolog: Updates due to 5836
Jeff Lucovsky [Sat, 4 Feb 2023 15:02:12 +0000 (10:02 -0500)] 
log: Updates due to 5836

This commit is needed to accommodate Suricata's changed behavior that
exits if a log file can't be opened at startup time.

2 years agotests: disable bug 5198 1119/head
Victor Julien [Thu, 9 Feb 2023 16:39:01 +0000 (17:39 +0100)] 
tests: disable bug 5198

Needs Suricata fix tracked in 5836.

2 years agotests: add test for bug 3286
Victor Julien [Thu, 9 Feb 2023 15:41:17 +0000 (16:41 +0100)] 
tests: add test for bug 3286

2 years agotests: fix smb test for 6.0.x 1116/head
Victor Julien [Tue, 7 Feb 2023 21:44:40 +0000 (22:44 +0100)] 
tests: fix smb test for 6.0.x

2 years agoframework: explicit utf-8 encoding for reading json 1111/head suricata-6.0.10
Philippe Antoine [Thu, 2 Feb 2023 15:57:01 +0000 (16:57 +0100)] 
framework: explicit utf-8 encoding for reading json

As the default encoding is platform dependent

2 years agotests: smb2 file sha logging test
Victor Julien [Sun, 22 Jan 2023 09:37:35 +0000 (10:37 +0100)] 
tests: smb2 file sha logging test

2 years agogithub-ci: only run suricata-verify once on Ubuntu 1104/head
Jason Ish [Tue, 31 Jan 2023 22:02:49 +0000 (16:02 -0600)] 
github-ci: only run suricata-verify once on Ubuntu

On Ubuntu verify was being run once with the output dir in tree, and
another time elsewhere.  Instead, on Ubuntu just run once with --outdir,
and run on Alma without --outdir to cover both cases and save some time.

2 years agogithub-ci: update checkout action to v3
Jason Ish [Tue, 31 Jan 2023 22:00:55 +0000 (16:00 -0600)] 
github-ci: update checkout action to v3

2 years agotests/log: Verify bug 5198
Jeff Lucovsky [Sun, 4 Sep 2022 12:23:55 +0000 (08:23 -0400)] 
tests/log: Verify bug 5198

This issue requires an ASAN build -- it doesn't reproduce without ASAN.

Issue: 5198

2 years agotests/bsize Add test cases for bsize
Jeff Lucovsky [Mon, 18 May 2020 14:08:50 +0000 (10:08 -0400)] 
tests/bsize Add test cases for bsize

This commit adds several test cases for the `bsize` keyword.

These tests apply to Suricata 7.0.x and newer.

2 years agotests: test midstream w midstream exception policy
Juliana Fajardini [Thu, 19 Jan 2023 14:58:10 +0000 (11:58 -0300)] 
tests: test midstream w midstream exception policy

Related to
Bug #5765

2 years agotest: test logging TLS dates less than 1970
Jason Ish [Fri, 27 Jan 2023 04:57:50 +0000 (22:57 -0600)] 
test: test logging TLS dates less than 1970

Issue: 5817

2 years agottl: add tests for prefilter keyword
Haleema Khan [Fri, 27 Jan 2023 01:36:32 +0000 (06:36 +0500)] 
ttl: add tests for prefilter keyword

Ticket #5800

2 years agotest: configuration file includes
Jason Ish [Thu, 26 Jan 2023 16:24:57 +0000 (10:24 -0600)] 
test: configuration file includes

Test configuration file includes that also include the new fully
qualified name overrides.

Pay attention to our "_" to "-" translation which should not happen for
variables.

2 years agotests/ftp: add checks for too long alerts
Jason Ish [Fri, 20 Jan 2023 22:26:04 +0000 (16:26 -0600)] 
tests/ftp: add checks for too long alerts

Related issue: 5235

2 years agotests: fix bad http host rule tests
Juliana Fajardini [Mon, 12 Dec 2022 22:38:29 +0000 (19:38 -0300)] 
tests: fix bad http host rule tests

The test.yaml files were missing the command set to compare eve.json
output and to run without a pcap file, therefore being simply skipped
for lack of a pcap file.

Also took the opportunity to make these compatible with new error
message formats for Suricata 7.

Test 1 also had a typo in the expected message to be checked, making it
fail.

2 years agodecode: Tests for unknown/arp counters
Jeff Lucovsky [Fri, 16 Dec 2022 14:31:34 +0000 (09:31 -0500)] 
decode: Tests for unknown/arp counters

Issue: 5761

This commit adds tests for decode counters which are new
- decode.arp
- decode.unknown_ethertype