opened
juliusv
username_0
See https://github.com/prometheus/prometheus/pull/4416

The template-based web endpoints such as `/alerts`, `/rules`, etc., refer to Go variable and method names that the compiler cannot statically verify. When the Go names get renamed, it breaks the templates without anyone noticing. It would be good to have some kind of e2e test that at least checks whether those pages render without an error.
Test correct rendering of template-based web endpoints
issue
created
minhlongdo
username_1
@username_0 would it be ok for me to pick up this issue?
comment
created
brian-brazil
username_2
Please go ahead.
comment
created
minhlongdo
username_1
@username_2 do you have any advice on how I should test endpoints that have `defer h.mtx.RUnlock()` in the handler? Like the `/config` endpoint
comment
created
brian-brazil
username_2
I don't see why those would be any different to test.
comment
created
minhlongdo
username_1
@username_2 I guess this issue can be closed?
comment
closed
brian-brazil
username_2
issue