[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: tests: http: Add some erroneous routes.
From: |
Mathieu Othacehe |
Subject: |
branch master updated: tests: http: Add some erroneous routes. |
Date: |
Mon, 03 Aug 2020 08:51:32 -0400 |
This is an automated email from the git hooks/post-receive script.
mothacehe pushed a commit to branch master
in repository guix-cuirass.
The following commit(s) were added to refs/heads/master by this push:
new 410d386 tests: http: Add some erroneous routes.
410d386 is described below
commit 410d386ea8c0c29829e08a2dcf838de3202e7024
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Mon Aug 3 14:48:45 2020 +0200
tests: http: Add some erroneous routes.
* tests/http.scm: Add new test cases covering some erroneous routes.
---
tests/http.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
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"))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: tests: http: Add some erroneous routes.,
Mathieu Othacehe <=