crowdsec/tests/lib
Cristian Nitescu 7284c0a47a
retry with backoff requests to CAPI (#1957)
* backoff on refresh token error

* fix tls communication with lapi and user/pw auth (#1956)

allow self-signed TLS encryption with user/pw auth

docker:
 - remove defaults for certificate file locations
 - new envvar INSECURE_SKIP_VERIFY
 - register agent before TLS settings (cscli machine add removes them
   from the credentials file)

* separate cscli cobra constructors:  lapi, machines, bouncers, postoverflows (#1945)

* use feature toggling to improve testability with http retry backoff

* Add parse unix to dateparse enricher (#1958)

Add parse unix is we do have a strTime but wasnt parsed using convential golang time

* func tests: redirect stderr to filter extra logs (#1961)

* backoff on refresh token error

* use feature toggling to improve testability with http retry backoff

* refactor feature backoff toggle for tests

Co-authored-by: mmetc <92726601+mmetc@users.noreply.github.com>
Co-authored-by: Laurence Jones <laurence.jones@live.co.uk>
2023-01-09 14:49:21 +01:00
..
bats-assert@397c735212 updated bats to 1.7.0; shellcheck fixes and moved cfssl dir under testdata/ (#1584) 2022-06-13 21:54:47 +02:00
bats-core@410dd229a5 updated bats to 1.7.0; shellcheck fixes and moved cfssl dir under testdata/ (#1584) 2022-06-13 21:54:47 +02:00
bats-file@17fa557f6f functional tests with bats-core (#1266) 2022-03-09 14:45:36 +01:00
bats-mock@48fce74482 add bats-mock to mock external commands in functional tests (#1529) 2022-05-19 09:58:13 +02:00
bats-support@d140a65044 functional tests with bats-core (#1266) 2022-03-09 14:45:36 +01:00
config Alert context (#1895) 2023-01-04 16:50:02 +01:00
db fixed package tests w/wal, gitignore/typos (#1849) 2022-10-31 10:02:51 +01:00
init func tests: don't return pid of started process unless asked (#1821) 2022-10-18 13:00:35 +02:00
setup.sh retry with backoff requests to CAPI (#1957) 2023-01-09 14:49:21 +01:00
setup_file.sh func tests: redirect stderr to filter extra logs (#1961) 2022-12-30 15:57:24 +01:00
teardown_file.sh updated bats to 1.7.0; shellcheck fixes and moved cfssl dir under testdata/ (#1584) 2022-06-13 21:54:47 +02:00