mmetc
2aa55e9444
move plugins/notifications/* to cmd/notification-* ( #2429 )
...
This ensures keeping all dependencies in sync, and simplifies
packaging under freebsd/gentoo/etc because there is a single
vendor directory.
2023-08-24 09:46:25 +02:00
blotus
77d58652a3
add sentinel notification plugin ( #2268 )
2023-07-25 15:07:10 +02:00
mmetc
0a748d324e
Make: extract "goversion.mk" to reuse it in bouncers ( #2101 )
2023-03-07 11:46:52 +01:00
blotus
0449ec1868
Windows Support ( #1159 )
2022-05-17 12:14:59 +02:00
Greg Myers
0f4ab71f01
Fix typos in docs, comments, code ( #1483 )
2022-04-27 11:04:12 +02:00
mmetc
81793fe8bf
dummy plugin ( #1342 )
2022-03-16 09:30:04 +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
Shivam Sandbhor
76e3612088
Check log level before dumping resp ( #1243 )
...
* Check log level before dumping resp
* Sleep longer in func tests
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-02-08 15:40:01 +01:00
Manuel Sabban
840939d489
Use override possibility in systemd file management in functional tests ( #1208 )
...
* change systemd behaviour for func tests
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2022-01-26 18:22:16 +01:00
Shivam Sandbhor
6c4ec64ca9
Fix json output of cscli hub list ( #1143 )
...
* Fix json output of cscli hub list
* Fix functional tests.
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2022-01-04 11:49:23 +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
mmetc
ca67be8fca
fatal if cannot add bouncer: fix for #1066 ( #1067 )
2021-12-13 10:30:55 +01:00
mmetc
96df5d6410
Shell fixes ( #1056 )
...
* broken test
* don't expand filenames into options
* fix for ./test_env.sh -h => ./test_env.sh: line 15: usage: command not found
2021-11-30 10:08:59 +01:00
AlteredCoder
37eedce72e
add functionnal test for hubtest ( #996 )
...
* add hubtest in functionnal test
2021-10-05 09:52:55 +02:00
Thibault "bui" Koechlin
c2fd173d1e
fix node success logic ( #993 )
...
* fix node success logic : only fail node on child failure if mother node has no successfull grok
2021-09-28 17:58:07 +02:00
he2ss
db5ffb0040
Update test env ( #987 )
...
* update test_env
2021-09-24 18:06:30 +02:00
Manuel Sabban
6b5f272c0a
Func tests ( #970 )
...
* stabilize func tests
* fix cold logs func tests
* add wait condition on mock server
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-09-13 17:33:47 +02:00
Manuel Sabban
e929ba16de
add sleep ( #969 )
...
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-09-10 17:42:46 +02:00
Manuel Sabban
e67fad06d3
fix error ( #960 )
...
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-09-10 11:06:25 +02:00
Manuel Sabban
e6afafa4d8
fix ( #958 )
...
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-09-10 09:32:01 +02:00
Thibault "bui" Koechlin
21dfc784b1
remove config.patch on master ( #957 )
...
* remove config.patch on master
* fix functional tests for plugins : replace group by nobody's actual group
* fix mock http server
2021-09-09 19:12:44 +02:00
Manuel Sabban
9b5cb6abc9
fucntional tests fix ( #952 )
...
* add patch for the user used for starting plugins
* fix postinst
* fix fucn tests to make it work with ansible
* group_wait to 5s
* small fixes
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-09-09 16:24:59 +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
ThinkChaos
448a227079
Minor changes to specific logs ( #900 )
...
- Minor changes to specific logs
- Fix LAPI to not push signals to CAPI when disabled #907
2021-08-25 18:30:05 +02:00
Thibault "bui" Koechlin
c188d401a3
Improve CAPI pull management ( #871 )
...
* prepare for new consensus : thousands of ips
Co-authored-by: Sebastien Blot <sebastien@crowdsec.net>
2021-08-25 11:45:29 +02:00
Manuel Sabban
535f0353df
should fix the unit tests ( #858 )
...
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-07-23 13:44:30 +02:00
Manuel Sabban
bb37e2e70d
fix functional tests ( #838 )
...
* fix functional tests
* add journal detection feature in wizard.sh
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
2021-07-01 10:36:27 +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
eb0bd70046
fix #787 : load simulation config at startup ( #793 )
...
* fix #787 : load simulation config at startup
2021-05-17 11:54:28 +02:00
bui
b007b8e932
fix paths for tests (packages and tarball don't deploy in the same path)
2021-03-26 10:18:13 +01:00
AlteredCoder
1e899c2211
Refactor configuration management ( #698 )
2021-03-24 18:16:17 +01:00
Thibault "bui" Koechlin
190fa112dd
Debian package auto-testing ( #701 )
...
* add dispatch to debian CI
* test dispatch
* keep only master
* push+mr
* document the functional tests
2021-03-19 16:28:55 +01:00
Thibault "bui" Koechlin
f1b0414c89
Unified functional tests ( #696 )
...
* remove dead / not needed code & scripts
* don't rely on /dev/urandom in wizard
* unified functional tests
2021-03-18 13:59:41 +01:00
AlteredCoder
f2d14c8ca2
update the config.yaml file ( #674 )
2021-03-11 11:18:09 +01:00
registergoofy
5b7ac4a473
[Rebased] fix races ( #633 )
...
* get rid of dead code
* have LeakRoutined started in a tomb
* fix race and multiple small issues in the way we handle tombs
* yet another race fix
* another race
* get rid of leaky.KillSwitch for proper tomb use
* fix deadlock
* empty overflow before exiting
* fix an obvious typo
* proper use of waitgroup
* have a smart signalisation for allowing LeakRoutine being killed
* ugly workaround
* fix lint error
* fix compilation
* fix panic
* shorten lock
* up lock both copy
* wait for crowdsec to die
* fix coding style and lint issue
* go mod tidy
Co-authored-by: bui <thibault@crowdsec.net>
2021-02-25 11:26:46 +01:00
Thibault "bui" Koechlin
986a0be812
fix wizard behaviour when detecting appropriate action ( #573 )
...
* fix wizard behaviour when detecting appropriate action
* fix filter handling with cscli
* add ipv6 tests
Co-authored-by: AlteredCoder <AlteredCoder>
2021-01-15 09:48:39 +01:00
AlteredCoder
5544000d38
lapi: fix ipv6 operations ( #567 )
2021-01-14 16:27:45 +01:00
AlteredCoder
bd7bcff2fd
Add upgrade tests ( #545 )
2020-12-17 10:50:34 +01:00
Thibault "bui" Koechlin
dbb420f79e
local api ( #482 )
...
Co-authored-by: AlteredCoder
Co-authored-by: erenJag
2020-11-30 10:37:17 +01:00
Thibault "bui" Koechlin
f8abb01bbc
Advise user to perform a reload when appropriate ( #163 )
2020-07-30 12:15:15 +02:00
Thibault "bui" Koechlin
177480cff7
updated mysql plugin support ( #135 )
...
* add support for plugin, support mysql & so on
* fix queries
Co-authored-by: erenJag <erenJag>
Co-authored-by: AlteredCoder <AlteredCoder>
2020-07-16 16:05:03 +02:00
Thibault "bui" Koechlin
7fe6741df3
Simulation support ( #136 )
...
* support simulation mode
2020-07-16 15:59:09 +02:00
Thibault "bui" Koechlin
26f77bed88
CI: provide makefile for CI and fixe types.Event ( #70 )
2020-06-11 15:03:43 +02:00
Thibault "bui" Koechlin
1abdfc9b10
make message better
2020-05-28 11:28:49 +02:00
Thibault bui Koechlin
2016167654
initial import
2020-05-15 11:39:16 +02:00