mmetc
5f2797c83c
more func test coverage; capture exit code for bincover ( #1425 )
2022-04-13 15:44:23 +02:00
mmetc
0190614342
show crowdsec logs after the tests ( #1439 )
2022-04-13 15:03:37 +02:00
mmetc
bf4bc0c9fc
single workflow for all tests, with bats coverage ( #1413 )
2022-04-05 11:00:11 +02:00
mmetc
7e36432bf5
use golangci-lint 1.45.2 ( #1420 )
2022-04-04 21:16:18 +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
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
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
mmetc
7baa5d623b
pgx driver tests ( #1379 )
2022-03-23 11:13:23 +01:00
mmetc
8df58df757
use secret for db passwords in tests ( #1381 )
2022-03-23 09:40:23 +01:00
mmetc
9d337bfb0e
fake machine-id in CI ( #1380 )
2022-03-22 12:33:36 +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
Manuel Sabban
b792c45921
Mysql enabled tests ( #1372 )
...
* add msyql backend test
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-03-18 17:36:51 +01:00
mmetc
b050d27e20
bats changes to allow bouncer testing ( #1345 )
2022-03-15 10:40:01 +01:00
mmetc
c077668511
restore test_env.sh ( #1332 )
...
* restore test_env.sh, test 'make package' in CI
2022-03-10 09:28:42 +01:00
mmetc
59ad91a8ca
functional tests with bats-core ( #1266 )
2022-03-09 14:45:36 +01:00
he2ss
45c1075ae0
docker image: add multi arch platforms ( #1270 )
...
* docker image: add multi arch platforms
2022-02-28 12:04:31 +01:00
Andreas Krüger
d18620858e
Create debian docker package including journalctl/systemd ( #1233 )
...
* Create debian docker package with journalctl
Co-authored-by: he2ss <hamza.essahely@gmail.com>
2022-02-15 17:10:15 +01:00
blotus
4a11060930
Kinesis datasource ( #1147 )
2022-01-11 14:19:43 +01:00
Manuel Sabban
51824d3bb8
add arg to hub func test ( #1103 )
...
* add arg to hub func test
* switch to go 1.17
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-12-16 11:06:31 +01:00
Kavin
0ffbbbec61
Add ARM docker images. ( #1051 )
2021-11-15 12:09:19 +01:00
alteredCoder
6bd80dbb86
update hubtest workflow
2021-10-07 16:45:28 +02:00
AlteredCoder
3b4c773890
fix hubtest CI ( #1000 )
2021-10-05 12:13:57 +02:00
AlteredCoder
0ccc69696b
Break on success when alert already has decision ( #997 ) ( #999 )
...
* Break on success when alert already has decision (#997 )
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-10-05 11:30:34 +02:00
alteredCoder
079172568a
fix the CI coverage generation
2021-10-05 10:19:19 +02:00
alteredCoder
5c7f873e18
fix the coverage badge generation
2021-10-05 10:15:12 +02:00
alteredCoder
1e200d99d8
fix hubtest CI for coverage
2021-10-05 10:02:59 +02:00
alteredCoder
285351f4f9
fix hubtest CI for coverage
2021-10-05 09:56:18 +02:00
AlteredCoder
37eedce72e
add functionnal test for hubtest ( #996 )
...
* add hubtest in functionnal test
2021-10-05 09:52:55 +02:00
alteredCoder
de87d0d951
fix badge coverage generation
2021-10-04 18:07:36 +02:00
Thibault "bui" Koechlin
af4bb350c0
hubtests revamp + cscli explain ( #988 )
...
* New hubtest CI for scenarios/parsers from the hub
* New `cscli explain` command to visualize parsers/scenarios pipeline
Co-authored-by: alteredCoder <kevin@crowdsec.net>
Co-authored-by: Sebastien Blot <sebastien@crowdsec.net>
Co-authored-by: he2ss <hamza.essahely@gmail.com>
Co-authored-by: Cristian Nitescu <cristian@crowdsec.net>
2021-10-04 17:14:52 +02:00
blotus
e92862213e
allow coveralls job to fail, as it is down :( ( #984 )
2021-09-21 12:45:38 +02:00
Thibault "bui" Koechlin
f5e54083c7
fix static build ( #971 )
...
* fix static build
2021-09-14 15:32:35 +02:00
Thibault "bui" Koechlin
055a0f08cb
up drafter fix typo ( #955 )
2021-09-09 16:40:22 +02:00
Shivam Sandbhor
e89543f725
Add functional tests for plugins ( #941 )
...
* Add functional tests for plugins
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
(cherry picked from commit 1a11c87296454aac1ebbc95c06b813ae67c91819)
* Update plugin dir in functional tests
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
* Update plugin process config in func tests
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
* Robust config replacement
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-09-08 15:22:34 +02:00
Thibault "bui" Koechlin
0ad6165ed2
fix release drafter + readme + remove dead readme for acquis ( #933 )
2021-09-03 09:07:24 +02:00
Thibault "bui" Koechlin
950759f6d6
Output plugins ( #878 )
...
* Add plugin system for notifications (#857 )
2021-08-25 11:43:29 +02:00
Sofian Brabez
6a08e4ed7f
Remove non POSIX sed usage ( #855 )
...
`sed -r` is not compatible with POSIX. Replace it by `sed -E` which is
supported by either GNU sed or BSD sed
2021-07-08 08:50:40 +02:00
blotus
73e0bbaf93
remove arm docker image for now, as buildx is half-broken on ubuntu ( #856 )
2021-07-07 16:49:16 +02:00
Thibault "bui" Koechlin
204fa88e4d
add codeQL CI ( #853 )
...
* add codeQL
2021-07-06 11:55:45 +02:00
blotus
e55e177baf
remove dispatch to packaging repo ( #852 )
2021-07-05 14:15:16 +02:00
Thibault "bui" Koechlin
3ecbb5a662
Create codeql-analysis.yml
2021-07-03 11:18:30 +02:00
blotus
c026fc7f16
Build docker image for both amd64 and arm64 ( #829 )
2021-06-11 11:50:05 +02:00
Thibault "bui" Koechlin
ce6a61df1c
Refactor Acquisition Interface ( #773 )
...
* Add new acquisition interface + new modules (cloudwatch, syslog)
Co-authored-by: Sebastien Blot <sebastien@crowdsec.net>
2021-06-11 09:53:53 +02:00
he2ss
2aee7be628
ignore CI when it concern documentation ( #815 )
2021-05-28 13:37:11 +02:00
he2ss
eb0bd70046
fix #787 : load simulation config at startup ( #793 )
...
* fix #787 : load simulation config at startup
2021-05-17 11:54:28 +02:00
registergoofy
e82ad5704d
fix ( #768 )
2021-04-27 11:20:20 +02:00