Creating a test environment
It is possible to deploy a minimalist test environment, which is useful to:
- create new parsers or scenarios
- test new features
- showcase a bug or a corner-case
This can be done directly with the tarball of the release:
https://github.com/crowdsecurity/crowdsec/releases/download/v1.1.1/crowdsec-release.tgztar xvzf crowdsec-release.tgzcd crowdsec-v1.1.1./test_env.shThe test environment is then available in the tests directory and should provide a functional CrowdSec environment:
cd tests./crowdsec -c dev.yamlcscli should be functional as well :
cd tests./cscli -c dev.yaml hub listIn this test environment, configurations are under the config/ dir.