Skip to content
Snippets Groups Projects
Unverified Commit 410d386e authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

tests: http: Add some erroneous routes.

* tests/http.scm: Add new test cases covering some erroneous routes.
parent d3329551
No related branches found
No related tags found
No related merge requests found
......@@ -212,10 +212,26 @@
404
(response-code (http-get (test-cuirass-uri "/build/42"))))
(test-equal "/build/42)"
404
(response-code (http-get (test-cuirass-uri "/build/42)"))))
(test-equal "/build/42/log/raw"
404
(response-code (http-get (test-cuirass-uri "/build/42/log/raw"))))
(test-equal "/build/42xx/log/raw"
404
(response-code (http-get (test-cuirass-uri "/build/42xx/log/raw"))))
(test-equal "/build/42/details"
404
(response-code (http-get (test-cuirass-uri "/build/42/details"))))
(test-equal "/build/42xx/details"
404
(response-code (http-get (test-cuirass-uri "/build/42xx/details"))))
(test-equal "/api/latestbuilds"
500
(response-code (http-get (test-cuirass-uri "/api/latestbuilds"))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment