VictoriaMetrics/app/vmalert
Aliaksandr Valialkin 43fc1183b9
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:45:50 +02:00
..
config app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
datasource app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
deployment
multiarch deployment: build image for vmagent streamaggr benchmark (#6515) 2024-06-24 16:29:14 +02:00
notifier app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
remoteread app/vmalert: adds idleConnTimeout flags and retry trivial network errors (#6382) 2024-06-03 11:52:58 +02:00
remotewrite app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
rule app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
static app/vmalert: fix links with anchors in vmalert's UI (#6146) 2024-04-22 15:05:23 +02:00
templates app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
tpl
utils app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
main_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
main.go vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:49:06 +02:00
Makefile vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:49:06 +02:00
manager_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
manager.go app/vmalert: fix data race during hot-config reload (#5698) 2024-01-26 22:43:02 +01:00
README.md all: replace old https://docs.victoriametrics.com/vmalert.html url with the new one - https://docs.victoriametrics.com/vmalert/ 2024-04-18 01:44:54 +02:00
replay_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
replay.go vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:49:06 +02:00
web_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
web_types_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
web_types.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:23:26 +02:00
web.go vmalert: [bug] fixed System hyperlink 404 redirect (#6620) 2024-07-11 12:40:23 +02:00
web.qtpl app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:35:02 +01:00
web.qtpl.go app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:35:02 +01:00

See vmalert docs here.

vmalert docs can be edited at docs/vmalert.md.