Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test correct rendering of template-based web endpoints #4417

Closed
juliusv opened this Issue Jul 25, 2018 · 5 comments

Comments

Projects
None yet
4 participants
@juliusv
Copy link
Member

juliusv commented Jul 25, 2018

See #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.

@minhlongdo

This comment has been minimized.

Copy link
Contributor

minhlongdo commented Feb 4, 2019

@juliusv would it be ok for me to pick up this issue?

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Feb 5, 2019

Please go ahead.

@minhlongdo

This comment has been minimized.

Copy link
Contributor

minhlongdo commented Feb 6, 2019

@brian-brazil do you have any advice on how I should test endpoints that have defer h.mtx.RUnlock() in the handler? Like the /config endpoint

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Feb 7, 2019

I don't see why those would be any different to test.

@minhlongdo

This comment has been minimized.

Copy link
Contributor

minhlongdo commented Feb 8, 2019

@brian-brazil I guess this issue can be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.