]> git.ipfire.org Git - thirdparty/suricata-verify.git/log
thirdparty/suricata-verify.git
5 years agotests: add dcerpc (over tcp) test 217/head
Victor Julien [Mon, 20 Apr 2020 12:54:21 +0000 (14:54 +0200)] 
tests: add dcerpc (over tcp) test

5 years agotests: add metadata and prefilter tests
Victor Julien [Mon, 20 Apr 2020 12:48:51 +0000 (14:48 +0200)] 
tests: add metadata and prefilter tests

5 years agoFix output-eve-ftp result
Philippe Antoine [Mon, 16 Mar 2020 13:54:03 +0000 (14:54 +0100)] 
Fix output-eve-ftp result

5 years agodecoder: initial hdlc test 213/head
Victor Julien [Fri, 21 Feb 2020 15:54:11 +0000 (16:54 +0100)] 
decoder: initial hdlc test

5 years agotests/tfo: add more tests
Victor Julien [Thu, 19 Mar 2020 20:28:01 +0000 (21:28 +0100)] 
tests/tfo: add more tests

5 years agotests: dns-tcp-www-google-com is rust only
Victor Julien [Sat, 11 Apr 2020 11:27:04 +0000 (13:27 +0200)] 
tests: dns-tcp-www-google-com is rust only

Rust parser has different behavior than the C parser in 4.1.x, but we're
too far into the branch to change such behavior.

5 years agotests: add http file blocking on sha256 tests
Victor Julien [Fri, 27 Mar 2020 14:08:13 +0000 (15:08 +0100)] 
tests: add http file blocking on sha256 tests

5 years agotests: mark 2 smb file tests as requiring rust 208/head
Jason Ish [Wed, 1 Apr 2020 22:50:59 +0000 (16:50 -0600)] 
tests: mark 2 smb file tests as requiring rust

- filestore-container-smb
- smb-eicar-file

5 years agoframework: warns on different type between yaml and json
Philippe Antoine [Fri, 20 Mar 2020 08:38:22 +0000 (09:38 +0100)] 
framework: warns on different type between yaml and json

5 years agoAdds test for SMB EICAR file
Philippe Antoine [Wed, 5 Feb 2020 13:03:42 +0000 (14:03 +0100)] 
Adds test for SMB EICAR file

5 years agowindows: fix version check for win32 204/head
Victor Julien [Thu, 26 Mar 2020 05:38:10 +0000 (06:38 +0100)] 
windows: fix version check for win32

There may be leading output before the expected version string,
so make sure to be a bit stricter on in the regex to extract the
version correctly.

5 years agowindows: skip tests that check for uid
Victor Julien [Tue, 24 Mar 2020 18:12:18 +0000 (19:12 +0100)] 
windows: skip tests that check for uid

5 years agowindows: skip shell checks and don't run setup 203/head
Victor Julien [Tue, 24 Mar 2020 06:35:44 +0000 (07:35 +0100)] 
windows: skip shell checks and don't run setup

5 years agotests: fix test using nanosecond precision
Victor Julien [Tue, 24 Mar 2020 06:33:29 +0000 (07:33 +0100)] 
tests: fix test using nanosecond precision

Not all libpcaps support this.

5 years agotests: byte_test bitmask tests
Jeff Lucovsky [Wed, 4 Mar 2020 13:23:37 +0000 (08:23 -0500)] 
tests: byte_test bitmask tests

5 years agoUpdate min-version to 6.0 for some test that fail on 5.0.x 202/head
Jason Ish [Sat, 21 Mar 2020 18:44:55 +0000 (12:44 -0600)] 
Update min-version to 6.0 for some test that fail on 5.0.x

- detect-filestore-config-02
- detect-filestore-config-04
- pcre-invalid-rule-01

5 years agogithub-ci: test against supported Suricata branches
Jason Ish [Sat, 21 Mar 2020 16:20:42 +0000 (10:20 -0600)] 
github-ci: test against supported Suricata branches

The idea is not to test every compile time option, but a somewhat
standard once over of our supported branches to make sure tests
that are version specific are flagged as such.

Will also allow us to quickly spot PRs that fail that may
be depending on a suricata fix/pr.

5 years agodetect-filestore-config: require nss
Jason Ish [Fri, 20 Mar 2020 23:28:08 +0000 (17:28 -0600)] 
detect-filestore-config: require nss

5 years agopcre-invalid-rule-01: min-version 5.0
Jason Ish [Fri, 20 Mar 2020 22:28:28 +0000 (16:28 -0600)] 
pcre-invalid-rule-01: min-version 5.0

5 years agofile-data-depth-inspection: break into 2 tests
Jason Ish [Fri, 20 Mar 2020 22:25:07 +0000 (16:25 -0600)] 
file-data-depth-inspection: break into 2 tests

As the alert one doesn't work with 4.1.

5 years agotests: file_data depth inspection should keep working with other rules
Gabriel L. Somlo [Mon, 23 Sep 2019 13:47:41 +0000 (09:47 -0400)] 
tests: file_data depth inspection should keep working with other rules

5 years agofilemd5: test md5 rule triggers without filestore keyword
Jason Ish [Thu, 26 Sep 2019 14:55:37 +0000 (08:55 -0600)] 
filemd5: test md5 rule triggers without filestore keyword

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2490

5 years agoAdds test for http async parsing
Philippe Antoine [Tue, 15 Oct 2019 14:33:59 +0000 (16:33 +0200)] 
Adds test for http async parsing

5 years agohttp-all-headers: remove check.sh, use new __len test
Jason Ish [Thu, 7 Nov 2019 19:25:43 +0000 (13:25 -0600)] 
http-all-headers: remove check.sh, use new __len test

Remove check.sh script and use __len to test the length
of the arrays.

5 years agoAdd ability to match on the length of an array.
Jason Ish [Thu, 7 Nov 2019 19:19:33 +0000 (13:19 -0600)] 
Add ability to match on the length of an array.

By using the "magic" key value of __len, a match can be done
on the length of an array. For example:

  - filter:
      count: 1
      match:
        event_type: http
        http.response_headers.__len: 9

This does rely on us never using __len as an actual object
key, so is a bit of a hack.

5 years agoeve/http: add request/response headers test
Maurizio Abba [Fri, 15 Feb 2019 20:19:20 +0000 (20:19 +0000)] 
eve/http: add request/response headers test

5 years agodns: add some checks on source and destination addresses
Jason Ish [Mon, 18 Nov 2019 18:51:40 +0000 (12:51 -0600)] 
dns: add some checks on source and destination addresses

Ticket #3340:
https://redmine.openinfosecfoundation.org/issues/3340

5 years agorun: flush stdout before using check.sh
Jeff Lucovsky [Sun, 22 Dec 2019 19:49:33 +0000 (14:49 -0500)] 
run: flush stdout before using check.sh

5 years agoissue 3406: Add tests checking filestore config
Jeff Lucovsky [Sun, 22 Dec 2019 19:48:26 +0000 (14:48 -0500)] 
issue 3406: Add tests checking filestore config

5 years agoadd tests for RFB parser
Sascha Steinbiss [Tue, 25 Feb 2020 17:16:16 +0000 (18:16 +0100)] 
add tests for RFB parser

5 years agotests/snmp: Update SNMP verifications
Jeff Lucovsky [Fri, 28 Feb 2020 15:01:15 +0000 (10:01 -0500)] 
tests/snmp: Update SNMP verifications

5 years agotests: FTP passive test update
Jeff Lucovsky [Fri, 28 Feb 2020 14:51:57 +0000 (09:51 -0500)] 
tests: FTP passive test update

5 years agotests: FTP active test update
Jeff Lucovsky [Fri, 28 Feb 2020 14:50:39 +0000 (09:50 -0500)] 
tests: FTP active test update

5 years agorun: Improved support of shell tests
Jeff Lucovsky [Wed, 19 Feb 2020 14:21:17 +0000 (09:21 -0500)] 
run: Improved support of shell tests

5 years agotests/pcre: Add test to check sticky buffer
Jeff Lucovsky [Wed, 19 Feb 2020 14:19:42 +0000 (09:19 -0500)] 
tests/pcre: Add test to check sticky buffer

This commit adds test support to ensure that modifiers to pcre have the
proper content.

5 years agotests/ipv6: fix on versions <6
Victor Julien [Thu, 19 Mar 2020 12:18:28 +0000 (13:18 +0100)] 
tests/ipv6: fix on versions <6

5 years agoAdds passing test for IPv6 evasion atomic fragment
Philippe Antoine [Fri, 28 Feb 2020 14:17:59 +0000 (15:17 +0100)] 
Adds passing test for IPv6 evasion atomic fragment

5 years agohttp-xff-unified2: quiet test script output
Jason Ish [Tue, 17 Mar 2020 15:38:01 +0000 (09:38 -0600)] 
http-xff-unified2: quiet test script output

On failure the require script would send an error to stderr,
redirect this to /dev/null as it is supposed to fail
if there is no unified2 support.

5 years agotests: Test for issue 3463
Jeff Lucovsky [Wed, 4 Mar 2020 15:21:17 +0000 (10:21 -0500)] 
tests: Test for issue 3463

Add a test for bug 3463 -- duplicate threshold options not detected.

5 years agotests: bug-3490 requires a min-version
Jeff Lucovsky [Sat, 29 Feb 2020 14:37:53 +0000 (09:37 -0500)] 
tests: bug-3490 requires a min-version

5 years agotests: Add tests for issue 3490
Jeff Lucovsky [Sun, 23 Feb 2020 19:55:22 +0000 (14:55 -0500)] 
tests: Add tests for issue 3490

5 years agoreadme: document shell checks
Jason Ish [Tue, 18 Feb 2020 17:29:57 +0000 (11:29 -0600)] 
readme: document shell checks

5 years agoshell check: raise error if missing args
Jason Ish [Tue, 18 Feb 2020 17:22:57 +0000 (11:22 -0600)] 
shell check: raise error if missing args

In a shell check, the args parameter is required. Fail the test
with a nicer error if the args field is missing.

5 years agodecode: ERSPAN Type I packet parsing 177/head
Jeff Lucovsky [Sat, 28 Dec 2019 18:23:27 +0000 (13:23 -0500)] 
decode: ERSPAN Type I packet parsing

5 years agobpf-command-line: add test for bug 3346
Eric Leblond [Tue, 19 Nov 2019 17:06:08 +0000 (18:06 +0100)] 
bpf-command-line: add test for bug 3346

5 years agodns test fix: only include relevant rules
Jason Ish [Thu, 9 Jan 2020 22:52:55 +0000 (16:52 -0600)] 
dns test fix: only include relevant rules

Remove app-layer dns rules for events not relevant to
test as some of them are scheduled for removal.

Also convert check.sh to test.yaml.

5 years agobug-130: update for changed detection logic 166/head
Victor Julien [Wed, 11 Dec 2019 20:40:36 +0000 (21:40 +0100)] 
bug-130: update for changed detection logic

5 years agohttp: test for body inspection corner case
Victor Julien [Wed, 11 Dec 2019 10:05:03 +0000 (11:05 +0100)] 
http: test for body inspection corner case

5 years agofixup: HAVE_RUST should be just RUST
Jason Ish [Mon, 9 Dec 2019 22:06:12 +0000 (16:06 -0600)] 
fixup: HAVE_RUST should be just RUST

5 years agotests: add mix of byte_extract tests
Andreas Herz [Mon, 1 Jul 2019 20:21:31 +0000 (22:21 +0200)] 
tests: add mix of byte_extract tests

5 years agotests: fix missing HAVE_RUST declarations
Victor Julien [Tue, 3 Dec 2019 07:13:36 +0000 (08:13 +0100)] 
tests: fix missing HAVE_RUST declarations

5 years agotests: fixes for bug 130
Victor Julien [Wed, 20 Nov 2019 18:19:51 +0000 (19:19 +0100)] 
tests: fixes for bug 130

Version check failed and windows failed to match.

5 years agotests: fix sip tests
Giuseppe Longo [Wed, 20 Nov 2019 10:50:36 +0000 (11:50 +0100)] 
tests: fix sip tests

The correct numbers of alerts logged is not correct and OISF/suricata#4330
fixes this issue, so this commit fixes tests that are broken.

5 years agotest: dhcp request flood test
Jason Ish [Wed, 20 Nov 2019 21:49:18 +0000 (15:49 -0600)] 
test: dhcp request flood test

Tests that a DHCP request flood doesn't take an excessive amount
of time.

Skipped by default.

Related ticket #3345:
https://redmine.openinfosecfoundation.org/issues/3345

5 years agorun: fix --force to force running of skipped tests
Jason Ish [Wed, 20 Nov 2019 21:45:05 +0000 (15:45 -0600)] 
run: fix --force to force running of skipped tests

5 years agoAll skip to be a boolean, for easy skip by default.
Jason Ish [Wed, 20 Nov 2019 21:44:42 +0000 (15:44 -0600)] 
All skip to be a boolean, for easy skip by default.

5 years agorun: allow an empty test.yaml
Jason Ish [Wed, 20 Nov 2019 21:36:56 +0000 (15:36 -0600)] 
run: allow an empty test.yaml

On an empty test.yaml, make sure the config object is an
empty dict, and not None.

5 years agorun: use 0 for undefined versioned components 158/head
Jason Ish [Wed, 20 Nov 2019 18:17:24 +0000 (12:17 -0600)] 
run: use 0 for undefined versioned components

Fix the version parser to use 0 for undefined version
components instead of None to support looser version
specifications:

5 => 5.0.0
5.1 => 5.1.0
5.1.1 => 5.1.1

5 years agobug-130: min-version 5.0 151/head
Jason Ish [Wed, 13 Nov 2019 22:46:13 +0000 (16:46 -0600)] 
bug-130: min-version 5.0

5 years agoAdd tests for #130: content + nocase issue
Shivani Bhardwaj [Sun, 30 Jun 2019 06:53:07 +0000 (12:23 +0530)] 
Add tests for #130: content + nocase issue

Closes redmine ticket #3057.

5 years agobase64 tests: update to work on 4.1
Jason Ish [Wed, 13 Nov 2019 22:27:41 +0000 (16:27 -0600)] 
base64 tests: update to work on 4.1

5 years agobase64: add basic tests
Eric Leblond [Sun, 13 Oct 2019 10:19:28 +0000 (12:19 +0200)] 
base64: add basic tests

5 years agoeve/dns: test eve/dns filtering 150/head
Jason Ish [Wed, 13 Nov 2019 17:32:49 +0000 (11:32 -0600)] 
eve/dns: test eve/dns filtering

To confirm ticket:
https://redmine.openinfosecfoundation.org/issues/3231

5 years agotests: add bug 3277 nfsv2+filestore test 148/head
Victor Julien [Thu, 7 Nov 2019 09:27:34 +0000 (10:27 +0100)] 
tests: add bug 3277 nfsv2+filestore test

5 years agotests: add empty TCP SACK test
Victor Julien [Thu, 7 Nov 2019 09:23:31 +0000 (10:23 +0100)] 
tests: add empty TCP SACK test

5 years agotests: add check for rdp support to rdp test
Victor Julien [Sat, 2 Nov 2019 15:23:45 +0000 (16:23 +0100)] 
tests: add check for rdp support to rdp test

5 years agotests: add rdp parser test 144/head
Andreas Herz [Tue, 29 Oct 2019 10:54:00 +0000 (11:54 +0100)] 
tests: add rdp parser test

5 years agorun: handle moved classificaton/reference config
Jason Ish [Tue, 1 Oct 2019 21:39:28 +0000 (15:39 -0600)] 
run: handle moved classificaton/reference config

First look for these configuration files in ./etc, then in the
top directory to handle the change of location in Suricata 5.0,
as well as work with older versions.

5 years agotests/datasets: set requirements
Victor Julien [Sat, 5 Oct 2019 09:27:01 +0000 (11:27 +0200)] 
tests/datasets: set requirements

5 years agotests/datasets: fix path hanlding in isnotset test
Victor Julien [Sat, 5 Oct 2019 08:51:18 +0000 (10:51 +0200)] 
tests/datasets: fix path hanlding in isnotset test

5 years agotest: dataset state isnotset test 135/head
Jason Ish [Thu, 3 Oct 2019 22:34:16 +0000 (16:34 -0600)] 
test: dataset state isnotset test

The idea with this test is to alert on the first time something
is seen in a state type dataset.

5 years agoAdds a testcase for HTTP multiple content-length 131/head
Philippe Antoine [Mon, 4 Mar 2019 16:27:57 +0000 (17:27 +0100)] 
Adds a testcase for HTTP multiple content-length

5 years agoAdds a testcase for http invalid request line
Philippe Antoine [Tue, 5 Mar 2019 13:09:05 +0000 (14:09 +0100)] 
Adds a testcase for http invalid request line

5 years agotests/evader: rename 116 to indicate its about lzma
Victor Julien [Fri, 20 Sep 2019 06:42:58 +0000 (08:42 +0200)] 
tests/evader: rename 116 to indicate its about lzma

5 years agotests: make sure lzma is enabled in evader test
Victor Julien [Fri, 20 Sep 2019 06:38:32 +0000 (08:38 +0200)] 
tests: make sure lzma is enabled in evader test

5 years agotests: add test case for file_data depth inspection
Andreas Herz [Wed, 21 Aug 2019 20:04:20 +0000 (22:04 +0200)] 
tests: add test case for file_data depth inspection

5 years agodns-opcode: test dns.opcode keyword
Jason Ish [Mon, 16 Sep 2019 22:28:47 +0000 (16:28 -0600)] 
dns-opcode: test dns.opcode keyword

5 years agosip: enable sip for sip tests
Jason Ish [Mon, 16 Sep 2019 23:05:19 +0000 (17:05 -0600)] 
sip: enable sip for sip tests

5 years agotests: add tests for sip keywords
Giuseppe Longo [Thu, 11 Jul 2019 14:19:49 +0000 (16:19 +0200)] 
tests: add tests for sip keywords

5 years agofile-store: add tests for stream-depth
Giuseppe Longo [Wed, 10 Apr 2019 20:17:09 +0000 (22:17 +0200)] 
file-store: add tests for stream-depth

5 years agotests: dns midstream reversed tests for tcp and udp 125/head
Jason Ish [Mon, 22 Apr 2019 17:35:00 +0000 (11:35 -0600)] 
tests: dns midstream reversed tests for tcp and udp

5 years agotests: add testmyids variant with midstream
Victor Julien [Tue, 11 Jun 2019 17:23:47 +0000 (19:23 +0200)] 
tests: add testmyids variant with midstream

5 years agotests: set proper requirements for dotprefix tests
Victor Julien [Fri, 13 Sep 2019 08:42:42 +0000 (10:42 +0200)] 
tests: set proper requirements for dotprefix tests

5 years agoAdds test case for http with missing protocol
Philippe Antoine [Tue, 2 Apr 2019 09:13:36 +0000 (11:13 +0200)] 
Adds test case for http with missing protocol

And header_names keyword in rules

5 years agotests: convert dotprefix test type to pcap
Jeff Lucovsky [Mon, 22 Jul 2019 22:39:22 +0000 (18:39 -0400)] 
tests: convert dotprefix test type to pcap

5 years agotests: add test for dotprefix transform
Jeff Lucovsky [Sun, 14 Jul 2019 18:52:09 +0000 (14:52 -0400)] 
tests: add test for dotprefix transform

5 years agotests: Update anomaly logging to use new config 123/head
Jeff Lucovsky [Tue, 13 Aug 2019 14:59:02 +0000 (10:59 -0400)] 
tests: Update anomaly logging to use new config

5 years agorun: pass OUTPUT_DIR to check.sh 120/head
Victor Julien [Thu, 5 Sep 2019 12:53:55 +0000 (14:53 +0200)] 
run: pass OUTPUT_DIR to check.sh

5 years agotests: add datasets tests
Victor Julien [Fri, 12 Jul 2019 18:43:16 +0000 (20:43 +0200)] 
tests: add datasets tests

5 years agoFix output in cmdline file for specified command 119/head
Shivani Bhardwaj [Thu, 5 Sep 2019 11:43:17 +0000 (17:13 +0530)] 
Fix output in cmdline file for specified command

So far if a command was specified in test.yaml, it showed up unusable in
cmdline file. Fix it with appropriate environment handling.

5 years agoRevert "Skips not yet passing http evader cases" 118/head
Philippe Antoine [Tue, 3 Sep 2019 14:26:26 +0000 (16:26 +0200)] 
Revert "Skips not yet passing http evader cases"

This reverts commit d6be0d9bde7ec9fd9028670966eabb46ccfd3f92.

5 years agorun: Add --skip-tests option 115/head
Shivani Bhardwaj [Thu, 11 Jul 2019 14:14:55 +0000 (19:44 +0530)] 
run: Add --skip-tests option

Given the ever increasing number of tests, give the developer an option
to skip tests based on patterns. Multiple patterns can be provided
separated by commas.

Usage
=====
```
 $  python ../suricata-verify/run.py --skip-tests evad,draft
```

As a result, all the tests containing "evad" or "draft" in their names.

5 years agoMove http-evader-* tests to http-evader folder
Shivani Bhardwaj [Thu, 11 Jul 2019 12:41:54 +0000 (18:11 +0530)] 
Move http-evader-* tests to http-evader folder

5 years agorun: Allow tests in subdirectories
Shivani Bhardwaj [Thu, 11 Jul 2019 12:32:32 +0000 (18:02 +0530)] 
run: Allow tests in subdirectories

With this patch it is now possible to have subdirectories with tests
under the main test directory. This shall help tests become more
organized.

5 years agotests: add tcp fastopen test
Jeff Lucovsky [Tue, 2 Jul 2019 19:16:31 +0000 (21:16 +0200)] 
tests: add tcp fastopen test

5 years agoAdds test case for http_header while closing
Philippe Antoine [Tue, 7 May 2019 14:22:42 +0000 (16:22 +0200)] 
Adds test case for http_header while closing

6 years agotests: pcap-ng -> pcap 107/head
Victor Julien [Tue, 23 Jul 2019 08:41:53 +0000 (10:41 +0200)] 
tests: pcap-ng -> pcap

6 years agotravis: add check for pcap-ng files
Victor Julien [Tue, 23 Jul 2019 08:57:59 +0000 (10:57 +0200)] 
travis: add check for pcap-ng files

6 years agotests: add test cases for FTP logging 106/head
Jeff Lucovsky [Sun, 21 Jul 2019 16:33:32 +0000 (12:33 -0400)] 
tests: add test cases for FTP logging

6 years agotests: update for anomaly filters 96/head
Jeff Lucovsky [Sat, 13 Jul 2019 15:58:36 +0000 (11:58 -0400)] 
tests: update for anomaly filters