Greg Myers
0f4ab71f01
Fix typos in docs, comments, code ( #1483 )
2022-04-27 11:04:12 +02:00
AlteredCoder
44b11c2e5b
Fix hub items installation ( #1481 )
2022-04-26 17:37:07 +02:00
blotus
1bd8cc79c8
Kill the whole docker acquis in tests ( #1475 )
2022-04-22 16:56:22 +02:00
Manuel Sabban
c17c651458
add logrotate file for debian ( #1474 )
...
* add logrotate file for debian
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-04-22 15:42:28 +02:00
AlteredCoder
8074a233e8
Fix typo in cscli metrics and debug message ( #1473 )
...
* Fix typo in cscli metrics and debug message
2022-04-22 11:29:55 +02:00
blotus
8909fbdb22
cleanup container state if the reader tomb dies by itself ( #1470 )
2022-04-22 10:52:44 +02:00
Thibault "bui" Koechlin
242706a475
fix journalctl deadlock on shutdown ( #1468 )
...
* avoid being locked sending termination error while the reading routine - on the chan - died
2022-04-21 14:02:25 +02:00
he2ss
2169dc674f
publish docker image to ghcr also ( #1467 )
2022-04-20 16:02:20 +02:00
AlteredCoder
4273a0f243
cscli: add autocompletions for hubitems ( #1465 )
...
* Add autocompletion for hub items in cscli
2022-04-20 15:44:48 +02:00
mmetc
6de175ad8a
support yq prior to 4.18.1 ( #1466 )
2022-04-20 15:05:34 +02:00
he2ss
ec4e193cbb
docker: add enroll on startup ( #1463 )
...
* docker: add enroll on startup
2022-04-20 13:35:22 +02:00
he2ss
615895da9d
cscli: add force enroll feature ( #1430 )
...
* cscli: add force enroll feature
2022-04-20 13:34:17 +02:00
Thibault "bui" Koechlin
ef20183ecb
go mod update for 1.3.3 ( #1462 )
2022-04-20 12:57:05 +02:00
mmetc
d7a269a6e4
wizard: removed jq dependency ( #1460 )
2022-04-20 09:45:23 +02:00
Manuel Sabban
d9f111c4ca
fix a bug in tests ( #1458 )
...
* is_db_sqlite is not accessible
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-04-19 20:00:48 +02:00
Thibault "bui" Koechlin
e6a35e8714
Improve plugins grouping (alternative to #1424 ) ( #1437 )
...
* Fix races in test (#1446 )
Co-authored-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Co-authored-by: alteredCoder <kevin@crowdsec.net>
Co-authored-by: AlteredCoder <64792091+AlteredCoder@users.noreply.github.com>
2022-04-19 19:12:23 +02:00
mmetc
0f7f21a7db
fix clean/create in pgdump/restore ( #1457 )
2022-04-19 15:49:37 +02:00
mmetc
4771d04a9d
Tests readme ( #1456 )
2022-04-19 15:01:46 +02:00
mmetc
2044a0677e
bats: ignore pre-installed hub objects like whitelist etc. ( #1455 )
2022-04-19 14:22:59 +02:00
AlteredCoder
526a4dbd08
Reduce the query unescape helper verbosity ( #1447 )
2022-04-19 12:31:29 +02:00
Shivam Sandbhor
8060f54f27
Cwhub testing ( #1438 )
...
* Add tests in cwhub and fix collection upgrade(#1431 )
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com
Co-authored-by: bui <thibault@crowdsec.net>
Co-authored-by: Thibault "bui" Koechlin <orixxx@gmail.com>
2022-04-19 12:07:35 +02:00
mmetc
d6d9bdd2ec
db tests CI: skip jobs by default; fix pg dump; check client requirements ( #1454 )
2022-04-19 11:41:50 +02:00
mmetc
4b9a0c4ef7
typos ( #1453 )
2022-04-19 11:25:27 +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
Shivam Sandbhor
4a3ec85686
Update bouncer pull in rupture mode ( #1445 )
...
* Update bouncer pull in rupture mode
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-04-15 12:24:01 +02:00
mmetc
b3786961de
removed RELEASE.json, embed codename in makefile ( #1442 )
2022-04-14 13:51:25 +02:00
AlteredCoder
71165bcd30
Send all installed scenario to LAPI ( #1277 )
2022-04-13 17:48:29 +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
0190614342
show crowdsec logs after the tests ( #1439 )
2022-04-13 15:03:37 +02:00
AlteredCoder
099469c5d2
Fix hub loader to support '.yml' files ( #1433 )
2022-04-11 16:13:20 +02:00
Shivam Sandbhor
a8089c8ddb
Add origins param in decision stream service ( #1429 )
...
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-04-07 12:40:27 +02:00
blotus
a0a5776e51
remove trailing from cp in make release ( #1416 )
2022-04-07 10:49:55 +02:00
mmetc
bf4bc0c9fc
single workflow for all tests, with bats coverage ( #1413 )
2022-04-05 11:00:11 +02:00
blotus
9cf2d5ab5c
handle containers with TTY in docker acquis ( #1422 )
2022-04-05 10:31:36 +02:00
mmetc
1e63727064
int64 for metric units ( #1419 )
2022-04-04 21:50:19 +02:00
mmetc
7e36432bf5
use golangci-lint 1.45.2 ( #1420 )
2022-04-04 21:16:18 +02:00
Adam
33ef6eaea6
Register bouncers on container init ( #1341 )
...
* Register bounces on init
2022-04-04 10:18:44 +02:00
Thibault "bui" Koechlin
ba7f4fcec0
make this info level ( #1409 )
...
* make this info level
2022-04-01 15:31:33 +02:00
mmetc
c54c9f2951
skip broken tests (w/ postgres and test coverage) ( #1410 )
2022-04-01 15:03:17 +02:00
mmetc
058237c9dd
install *.cover binaries in $BIN_DIR; minor workflow changes ( #1408 )
2022-04-01 14:12:03 +02:00
mmetc
dad22a6aba
instrument main() for tests ( #1399 )
2022-04-01 11:17:45 +02:00
mmetc
b202e387cf
fix "cscli" without arguments ( #1406 )
2022-03-31 16:50:38 +02:00
Thibault "bui" Koechlin
cea793fc3a
cleanup mess ( #1401 )
2022-03-30 16:11:27 +02:00
Thibault "bui" Koechlin
ec5587a734
Merge branch 'master' into master
2022-03-30 16:05:32 +02:00
Manuel Sabban
b076f1d582
allow DB_BACKEND to be expanded ( #1400 )
...
* allow DB_BACKEND to be expanded
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-03-30 11:33:26 +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
Thibault "bui" Koechlin
d8dc01cd94
Revamp unit tests ( #1368 )
...
* Revamp unit tests
* Increase coverage
* Use go-acc to get cross packages coverage
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-03-29 14:20:26 +02:00
mmetc
3f24bcdbcf
pg tests: pass now, waiting for fix ( #1393 )
...
* PG* variable names
* take DB_BACKEND from file name; reduce duplicated code; configure db_type=sqlite
2022-03-28 10:41:32 +02:00
mmetc
2f18808d68
print db logs after tests ( #1390 )
2022-03-25 12:17:28 +01:00