VictoriaMetrics/app/vmalert/notifier
Aliaksandr Valialkin 0078399788
app/vmalert: switch from table-driven tests to f-tests
This makes test code more clear and reduces the number of code lines by 500.
This also simplifies debugging tests. See https://itnext.io/f-tests-as-a-replacement-for-table-driven-tests-in-go-8814a8b19e9e

While at it, consistently use t.Fatal* instead of t.Error* across tests, since t.Error*
requires more boilerplate code, which can result in additional bugs inside tests.
While t.Error* allows writing logging errors for the same, this doesn't simplify fixing
broken tests most of the time.

This is a follow-up for a9525da8a4
2024-07-12 22:41:11 +02:00
..
testdata vmalert: support specifying full http url in notifier static_configs target (#5261) 2023-11-01 19:53:50 +08:00
alert_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
alert.go app/vmalert: sanitize label names before sending to Alertmanager (#5442) 2023-12-08 16:53:35 +03:00
alertmanager_request.qtpl fix issue#3053 (#3182) 2022-10-10 09:44:58 +02:00
alertmanager_request.qtpl.go vmalert: revert unexpected fileds rename during refactoring (#3222) 2022-10-11 12:37:47 +02:00
alertmanager_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
alertmanager.go app/vmalert: fix VMAlert oauth2 error (#6478) 2024-06-14 15:06:14 +02:00
config_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
config_watcher_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
config_watcher.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-25 21:24:03 +02:00
config.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
faker.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
init_test.go vmalert: follow-up after d4ac4b7813 (#4659) 2023-07-18 15:53:37 +02:00
init.go app/{vmagent,vmalert}: add the ability to set OAuth2 endpoint params via the corresponding *.oauth2.endpointParams command-line flags 2023-12-20 21:35:28 +02:00
notifier_blackhole_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
notifier_blackhole.go vmalert: follow-up after d4ac4b7813 (#4659) 2023-07-18 15:53:37 +02:00
notifier.go vmalert: allow configuring custom notifier headers per group (#4088) 2023-04-27 12:17:26 +02:00
package_test.go added reusable templates support (#2532) 2022-05-14 11:38:44 +02:00