mmetc
708fa8280a
add test and fix for configuration reload ( #1808 )
...
fix reload issue by returning new configuration to the signal loop
example: run crowdsec, disable agent in the config file, reload config.
Now there is no agent but the signal loop believes there is, so
triggering a reload configuration again will make the process hang
forever.
This commit updates the configuration in the signal loop with the one
returned by the signal handler.
2022-10-14 15:48:41 +02:00
mmetc
a50a3362bd
bats helper fixes ( #1792 )
2022-10-07 16:17:36 +02:00
mmetc
ddd75eae9a
cscli: new tables, --color yes|no|auto option ( #1763 )
2022-10-07 11:05:35 +02:00
mmetc
af30ba0e3b
tests/bin cleanup ( #1760 )
2022-10-04 15:58:10 +02:00
mmetc
faf3670e7f
Ansible changed_when fix; ansible/vagrant lint ( #1734 )
2022-09-06 11:33:50 +02:00
mmetc
15a9e16530
functional tests: json, stderr helpers ( #1704 )
2022-08-05 10:54:49 +02:00
mmetc
e05515f79d
disable capi for tests by default ( #1633 )
2022-07-04 11:26:39 +02:00
mmetc
e868adee2f
config_get, config_set test helpers ( #1632 )
2022-07-01 22:45:55 +02:00
AlteredCoder
0a39066f9d
Fix #1552 ( #1569 )
2022-06-22 10:29:02 +02:00
mmetc
b91fcb8e9b
Fixed bats tests for freebsd ( #1600 )
2022-06-22 10:00:51 +02:00
mmetc
c78c833400
CI: colored test output, colored crowdsec and crowdsec-api logs, full final db dump for mysql and sqlite ( #1596 )
...
* github-ci: color unit test output and logs
* new config option: force_color_logs (useful in CI)
* bats: show sqlite/mysql dump at the end
* removed "-v" (print package names) from "go build"
* general workflow cleanup
2022-06-17 16:12:49 +02:00
mmetc
b572f64dc6
removed bats warnings ( #1592 )
2022-06-15 15:36:36 +02:00
mmetc
67841d54ee
updated bats to 1.7.0; shellcheck fixes and moved cfssl dir under testdata/ ( #1584 )
2022-06-13 21:54:47 +02:00
mmetc
6de175ad8a
support yq prior to 4.18.1 ( #1466 )
2022-04-20 15:05:34 +02:00
mmetc
17ed27052c
save fixture with community data ( #1440 )
2022-04-13 15:17:49 +02:00
mmetc
af8c55330d
[wip] bats changes for modular fixtures ( #1371 )
...
* target: tests/.environment.sh
* don't pass BIN_DIR around
* manage db backup/restore separately
* don't export CONFIG_DIR, DATA_DIR (derive path locations from
CONFIG_YAML); redirect stdout, stderr to &3 by default in setup_file,
teardown_file
2022-03-18 10:13:12 +01:00
mmetc
59ad91a8ca
functional tests with bats-core ( #1266 )
2022-03-09 14:45:36 +01:00