Commit graph

24 commits

Author SHA1 Message Date
alteredCoder 7f42f94fe3 finalize 2022-04-15 15:55:03 +02:00
alteredCoder 8148b858fb update tests 2022-04-15 15:55:03 +02:00
alteredCoder 9555d5dce8 fix alerts list context 2022-04-15 15:55:03 +02:00
alteredCoder 699dcb2c0f add tests 2022-04-15 15:55:03 +02:00
Manuel Sabban 37756e8082
improve test packaging (#1443)
* improve tests for packaging

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
Co-authored-by: mmetc <92726601+mmetc@users.noreply.github.com>
2022-04-15 15:39:17 +02:00
mmetc 5f2797c83c
more func test coverage; capture exit code for bincover (#1425) 2022-04-13 15:44:23 +02:00
mmetc 17ed27052c
save fixture with community data (#1440) 2022-04-13 15:17:49 +02:00
mmetc c54c9f2951
skip broken tests (w/ postgres and test coverage) (#1410) 2022-04-01 15:03:17 +02:00
mmetc b202e387cf
fix "cscli" without arguments (#1406) 2022-03-31 16:50:38 +02:00
Manuel Sabban 16b9fd82f0
Update bats tests to work with systemd (#1394)
* update for making it work with systemd
* take DB_BACKEND from file name; reduce duplicated code; configure db_type=sqlite
* define PACKAGE_TESTING

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
Co-authored-by: mmetc <92726601+mmetc@users.noreply.github.com>
2022-03-29 17:06:49 +02:00
mmetc 7329a9d4b2
mysql test: delays in strem test (#1387) 2022-03-24 14:50:52 +01:00
mmetc 0667552132
bats: postgres tests (#1377)
* split CI/bats in sqlite+mysql+mariadb+hub
* renamed db and user 'crowdsec' to 'crowdsec-test'; moved backend-specific scripts to lib/db, etc.
* postgres tests
* force delay between ipv6 tests (for myisam)
* force delay after pg_restore to ensure data is written
2022-03-21 15:51:05 +01:00
mmetc c2708ab6c0
Bats: "reformat" script for shfmt, longer timeout for crowdsec (#1373) 2022-03-18 14:46:05 +01: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 9a6a254a90
test decision list -m (#1365) 2022-03-17 12:20:08 +01:00
mmetc 81793fe8bf
dummy plugin (#1342) 2022-03-16 09:30:04 +01:00
Thibault "bui" Koechlin 548b0b5518
bit of doc + tests for lapi stream mode (#1356)
* bit of doc + tests for lapi stream mode
2022-03-15 17:16:33 +01:00
mmetc b050d27e20
bats changes to allow bouncer testing (#1345) 2022-03-15 10:40:01 +01:00
mmetc b6aca81ebd
allow "cscli completion..." without configuration file (#1340) 2022-03-10 14:57:14 +01:00
mmetc 8120fe7d5d
fix for /usr/bin/wc on freebsd (#1338)
* fix for /usr/bin/wc on freebsd
* check for python3 in bats-test
2022-03-10 13:59:10 +01:00
mmetc aca37a38e7
return 1 with incomplete command line; always check error when calling cmd.Help (#1335) 2022-03-10 13:55:25 +01:00
mmetc 0c35263c29
fix bats-test for freebsd (#1333) 2022-03-10 12:19:02 +01:00
mmetc 7c0593c659
noop code removal, typos and lint fixes (#1329) 2022-03-09 16:15:18 +01:00
mmetc 59ad91a8ca
functional tests with bats-core (#1266) 2022-03-09 14:45:36 +01:00