crowdsec/scripts/func_tests
mmetc 96df5d6410
Shell fixes (#1056)
* broken test

* don't expand filenames into options

* fix for ./test_env.sh -h => ./test_env.sh: line 15: usage: command not found
2021-11-30 10:08:59 +01:00
..
config fucntional tests fix (#952) 2021-09-09 16:24:59 +02:00
systemd fix paths for tests (packages and tarball don't deploy in the same path) 2021-03-26 10:18:13 +01:00
mock_http_server.py remove config.patch on master (#957) 2021-09-09 19:12:44 +02:00
README.md Debian package auto-testing (#701) 2021-03-19 16:28:55 +01:00
tests_base.sh Shell fixes (#1056) 2021-11-30 10:08:59 +01:00
tests_post-install_0base.sh Func tests (#970) 2021-09-13 17:33:47 +02:00
tests_post-install_1bouncers.sh Unified functional tests (#696) 2021-03-18 13:59:41 +01:00
tests_post-install_2collections.sh Refactor configuration management (#698) 2021-03-24 18:16:17 +01:00
tests_post-install_3machines.sh Unified functional tests (#696) 2021-03-18 13:59:41 +01:00
tests_post-install_4cold-logs.sh fix node success logic (#993) 2021-09-28 17:58:07 +02:00
tests_post-install_5simulation.sh Func tests (#970) 2021-09-13 17:33:47 +02:00
tests_post-install_6hubtests.sh add functionnal test for hubtest (#996) 2021-10-05 09:52:55 +02:00
tests_post-install_7_plugin.sh Shell fixes (#1056) 2021-11-30 10:08:59 +01:00
tests_post-install_99ip_mgmt.sh Unified functional tests (#696) 2021-03-18 13:59:41 +01:00
tests_post-remove_0base.sh Unified functional tests (#696) 2021-03-18 13:59:41 +01:00

Functional testing

This directory contains scripts for functional testing of crowdsec, to unify testing across packages (ie. tgz, deb, rpm).

Each package system tests the installation/removal, and the scripts here cover basic functional testing.

cscli

Feature Covered Note
cscli alerts 🟢 99ip_mgmt.sh
cscli bouncers 🟢 1bouncers.sh
cscli capi 0base.sh : status only
cscli collections 🟢 2collections.sh
cscli config 0base.sh : minimal testing (no crash)
cscli dashboard docker inside docker 😞
cscli decisions 🟢 99ip_mgmt.sh
cscli hub TBD
cscli lapi 🟢 3machines.sh
cscli machines 🟢 3machines.sh
cscli metrics TBD
cscli parsers TBD
cscli postoverflows TBD
cscli scenarios TBD
cscli simulation TBD
cscli version 🟢 0base.sh

crowdsec

Feature Covered Note
systemctl start/stop/restart 🟢 0base.sh
agent behaviour 🟢 4cold-logs.sh : minimal testing (simple ssh-bf detection)
forensic mode 🟢 4cold-logs.sh : minimal testing (simple ssh-bf detection)
starting only LAPI TBD
starting only agent TBD
prometheus testing TBD

API

Feature Covered Note
alerts GET/POST 🟢 99ip_mgmt.sh
decisions GET/POST 🟢 99ip_mgmt.sh

Automation

https://github.com/crowdsecurity/crowdsec/ uses dispatch to triggers tests in the other packages build repositories.