open-consul/test
John Murret acfc7452e9
Integration test for server rate limiting (#15960)
* rate limit test

* Have tests for the 3 modes

* added assertions for logs and metrics

* add comments to test sections

* add check for rate limit exceeded text in log assertion section.

* fix linting error

* updating test to use KV get and put.  move log assertion tolast.

* Adding logging for blocking messages in enforcing mode.  refactoring tests.

* modified test description

* formatting

* Apply suggestions from code review

Co-authored-by: Dan Upton <daniel@floppy.co>

* Update test/integration/consul-container/test/ratelimit/ratelimit_test.go

Co-authored-by: Dhia Ayachi <dhia@hashicorp.com>

* expand log checking so that it ensures both logs are they when they are supposed to be and not there when they are not expected to be.

* add retry on test

* Warn once when rate limit exceed regardless of enforcing vs permissive.

* Update test/integration/consul-container/test/ratelimit/ratelimit_test.go

Co-authored-by: Dan Upton <daniel@floppy.co>

Co-authored-by: Dan Upton <daniel@floppy.co>
Co-authored-by: Dhia Ayachi <dhia@hashicorp.com>
2023-01-19 08:43:33 -07:00
..
bin test: log exit code in cluster.bash 2017-06-08 14:06:10 +02:00
ca Regenerate test certificates. (#15218) 2022-11-01 10:51:13 -05:00
ca_path Add tls client options to api/cli 2017-04-14 13:37:29 -07:00
client_certs Regenerate test certificates. (#15218) 2022-11-01 10:51:13 -05:00
command/merge Add utility types to enable checking for unset flags 2017-02-07 20:14:41 -05:00
hostname Regenerate test certificates. (#15218) 2022-11-01 10:51:13 -05:00
integration Integration test for server rate limiting (#15960) 2023-01-19 08:43:33 -07:00
key Regenerate test certificates. (#15218) 2022-11-01 10:51:13 -05:00
load Load test, upgrade packer version, fix k6s installation (#13382) 2022-06-15 09:29:38 -04:00
snapshot snapshot: read meta.json correctly. (#5193) 2019-01-08 17:06:28 +01:00
CA-GENERATION.md regenerate expired certs (#11462) 2021-11-01 11:40:16 -04:00
notes.txt