You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make tests for URL load check rule functions self contained
Several rules check whether URLs provided in project metadata load.
Previously, the handling of various HTTP response status codes of these rule functions was tested by using the
convenient httpstat.us site. Unfortunately the maintainers of that site shut it down months ago due to abuse. This
caused the spurious failure of the unit tests. Although the httpstat.us maintainers state that they plan to eventually
resume service, there hasn't been any indication of progress on that front.
So it will be best to make the tests self contained, without any dependence on an external site. This is accomplished by
creating a local HTTP server that responds with the intended status code. Unfortunately this does require the addition
of code to the test in order to generate test data on the fly in order to reference the arbitrary port of the test
server.
0 commit comments