crowdsec/pkg/apiclient
JDEV 12a4a5fb14
CAPI error code handling tests (#2027)
* Registration mocked error cases

* Authentication mock error cases

* mini facto

* check that getMEtric still has bouncers/machines keys in output even with empty collections

* fixed defer body close(), no need to defer and fprint arg

* fix fatal call

---------

Co-authored-by: jdv <julien@crowdsec.net>
2023-02-17 14:57:46 +01:00
..
alerts_service.go support decisions deletion via scenario + alerts delete via ID (#1798) 2022-10-19 14:37:27 +02:00
alerts_service_test.go enable staticcheck linter; fixes (#1806) 2022-10-14 16:12:21 +02:00
auth.go Do not try to refresh JWT token when doing a login request (#2059) 2023-02-16 16:16:26 +01:00
auth_service.go Do not try to refresh JWT token when doing a login request (#2059) 2023-02-16 16:16:26 +01:00
auth_service_test.go CAPI error code handling tests (#2027) 2023-02-17 14:57:46 +01:00
auth_test.go enable staticcheck linter; fixes (#1806) 2022-10-14 16:12:21 +02:00
client.go optimize blocklist fetch (#2039) 2023-02-13 15:06:14 +01:00
client_http.go changes following BL tests (#2038) 2023-02-08 10:35:21 +01:00
client_http_test.go replace log.Fatal with t.Fatal (#1805) 2022-10-13 10:42:46 +02:00
client_test.go v3 capi and blocklists links support (#2019) 2023-02-06 14:06:14 +01:00
config.go Polling API Integration (#1715) 2023-01-31 14:47:44 +01:00
decisions_service.go optimize blocklist fetch (#2039) 2023-02-13 15:06:14 +01:00
decisions_service_test.go optimize blocklist fetch (#2039) 2023-02-13 15:06:14 +01:00
decisions_sync_service.go Polling API Integration (#1715) 2023-01-31 14:47:44 +01:00
heartbeat.go golangci-lint v1.48 and fixes for "usestdlibvars" (#1711) 2022-08-16 09:46:10 +02:00
metrics.go golangci-lint v1.48 and fixes for "usestdlibvars" (#1711) 2022-08-16 09:46:10 +02:00
signal.go golangci-lint 1.49 and related fixes (#1736) 2022-09-06 13:55:03 +02:00