diff options
author | Mathieu Othacehe <othacehe@gnu.org> | 2020-08-03 14:48:45 +0200 |
---|---|---|
committer | Mathieu Othacehe <othacehe@gnu.org> | 2020-08-03 14:48:45 +0200 |
commit | 410d386ea8c0c29829e08a2dcf838de3202e7024 (patch) | |
tree | b6d9ec468e665e12fa1aa5bb74163094dfc11af1 /tests | |
parent | d3329551fe2b90a454617da0f241e51fb4a72c58 (diff) | |
download | cuirass-410d386ea8c0c29829e08a2dcf838de3202e7024.tar cuirass-410d386ea8c0c29829e08a2dcf838de3202e7024.tar.gz |
tests: http: Add some erroneous routes.
* tests/http.scm: Add new test cases covering some erroneous routes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/http.scm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/http.scm b/tests/http.scm index 19db037..1bcd056 100644 --- a/tests/http.scm +++ b/tests/http.scm @@ -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")))) |