Manuel Sabban 9b5cb6abc9 fucntional tests fix (#952) 3 năm trước cách đây
..
config 9b5cb6abc9 fucntional tests fix (#952) 3 năm trước cách đây
systemd b007b8e932 fix paths for tests (packages and tarball don't deploy in the same path) 4 năm trước cách đây
README.md 190fa112dd Debian package auto-testing (#701) 4 năm trước cách đây
mock_http_server.py e89543f725 Add functional tests for plugins (#941) 3 năm trước cách đây
tests_base.sh bb37e2e70d fix functional tests (#838) 4 năm trước cách đây
tests_post-install_0base.sh 9b5cb6abc9 fucntional tests fix (#952) 3 năm trước cách đây
tests_post-install_1bouncers.sh f1b0414c89 Unified functional tests (#696) 4 năm trước cách đây
tests_post-install_2collections.sh 1e899c2211 Refactor configuration management (#698) 4 năm trước cách đây
tests_post-install_3machines.sh f1b0414c89 Unified functional tests (#696) 4 năm trước cách đây
tests_post-install_4cold-logs.sh bb37e2e70d fix functional tests (#838) 4 năm trước cách đây
tests_post-install_5simulation.sh bb37e2e70d fix functional tests (#838) 4 năm trước cách đây
tests_post-install_7_plugin.sh 9b5cb6abc9 fucntional tests fix (#952) 3 năm trước cách đây
tests_post-install_99ip_mgmt.sh f1b0414c89 Unified functional tests (#696) 4 năm trước cách đây
tests_post-remove_0base.sh f1b0414c89 Unified functional tests (#696) 4 năm trước cách đây

README.md

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.