docs about running tests are incorrect

https://doc.crowdsec.net/docs/contributing/contributing_test_env/ apparenlty anything after ../cscli -c ../dev.yaml hubtest run --all is not working as expected
Creating a test environment | CrowdSec
You need a test environment for several reasons:
4 Replies
CrowdSec
CrowdSec4mo ago
Important Information
Thank you for getting in touch with your support request. To expedite a swift resolution, could you kindly provide the following information? Rest assured, we will respond promptly, and we greatly appreciate your patience. While you wait, please check the links below to see if this issue has been previously addressed. If you have managed to resolve it, please use run the command /resolve or press the green resolve button below.
Log Files
If you possess any log files that you believe could be beneficial, please include them at this time. By default, CrowdSec logs to /var/log/, where you will discover a corresponding log file for each component.
Guide Followed (CrowdSec Official)
If you have diligently followed one of our guides and hit a roadblock, please share the guide with us. This will help us assess if any adjustments are necessary to assist you further.
Screenshots
Please forward any screenshots depicting errors you encounter. Your visuals will provide us with a clear view of the issues you are facing.
© Created By WhyAydan for CrowdSec ❤️
_KaszpiR_
_KaszpiR_OP4mo ago
~/src/crowdsec-v1.6.9/tests $ ./crowdsec -c dev.yaml
WARN[2025-06-22T15:27:06+02:00] can't load CAPI credentials from './config/online_api_credentials.yaml' (missing login field)
INFO[2025-06-22T15:27:06+02:00] push and pull to Central API disabled
INFO[2025-06-22T15:27:06+02:00] Enabled feature flags: none
INFO[2025-06-22T15:27:06+02:00] Crowdsec v1.6.9-40b8cfe6
INFO[2025-06-22T15:27:06+02:00] Loading prometheus collectors
WARN[2025-06-22T15:27:06+02:00] Communication with CrowdSec Central API disabled from configuration file
INFO[2025-06-22T15:27:06+02:00] push and pull to Central API disabled
INFO[2025-06-22T15:27:06+02:00] CrowdSec Local API listening on 127.0.0.1:8081
~/src/crowdsec-v1.6.9/tests $ ./crowdsec -c dev.yaml
WARN[2025-06-22T15:27:06+02:00] can't load CAPI credentials from './config/online_api_credentials.yaml' (missing login field)
INFO[2025-06-22T15:27:06+02:00] push and pull to Central API disabled
INFO[2025-06-22T15:27:06+02:00] Enabled feature flags: none
INFO[2025-06-22T15:27:06+02:00] Crowdsec v1.6.9-40b8cfe6
INFO[2025-06-22T15:27:06+02:00] Loading prometheus collectors
WARN[2025-06-22T15:27:06+02:00] Communication with CrowdSec Central API disabled from configuration file
INFO[2025-06-22T15:27:06+02:00] push and pull to Central API disabled
INFO[2025-06-22T15:27:06+02:00] CrowdSec Local API listening on 127.0.0.1:8081
15:29:30 kaszpir@lynx ~/src/crowdsec-v1.6.9/tests/hub (bind9-feat-no-clientid) $ ../cscli -c ../dev.yaml hubtest run --all
Running all tests (max_jobs: 12)
Running test 'CVE-2017-9841'
Running test 'CVE-2019-18935'
Running test 'CVE-2021-4034'
Running test 'CVE-2022-26134'

<ommited other lines ....>

Error: unable to copy 'patterns' from '/home/kaszpir/src/crowdsec-v1.6.9/tests/hub/config/patterns' to '/home/kaszpir/src/crowdsec-v1.6.9/tests/hub/.tests/CVE-2022-46169/runtime/patterns': stat .: no such file or directory
15:29:30 kaszpir@lynx ~/src/crowdsec-v1.6.9/tests/hub (bind9-feat-no-clientid) $ ../cscli -c ../dev.yaml hubtest run --all
Running all tests (max_jobs: 12)
Running test 'CVE-2017-9841'
Running test 'CVE-2019-18935'
Running test 'CVE-2021-4034'
Running test 'CVE-2022-26134'

<ommited other lines ....>

Error: unable to copy 'patterns' from '/home/kaszpir/src/crowdsec-v1.6.9/tests/hub/config/patterns' to '/home/kaszpir/src/crowdsec-v1.6.9/tests/hub/.tests/CVE-2022-46169/runtime/patterns': stat .: no such file or directory
oh wait, maybe because that's stuffed with symlinks and they are not relative ones and I movede the directory because socket paths were too long nope there's no hub/config/patterns (or genreally hub/config
_KaszpiR_
_KaszpiR_OP4mo ago
GitHub
Running hub test broken due to missing path · Issue #3698 · crowd...
What happened? Following https://doc.crowdsec.net/docs/contributing/contributing_test_env/ What did you expect to happen? Running ../cscli -c ../dev.yaml hubtest run --all would execute testst, but...
_KaszpiR_
_KaszpiR_OP4mo ago
seems like pattern_dir is incorrect, its ./patterns but should be ./config/patterns hm or actually it wotks with absolute path only

Did you find this page helpful?