mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
publish: Add test for non-GET queries.
* tests/publish.scm ("non-GET query"): New test.
This commit is contained in:
@@ -483,4 +483,12 @@ FileSize: ~a~%"
|
||||
(let ((uri (publish-uri "/log/does-not-exist")))
|
||||
(response-code (http-get uri))))
|
||||
|
||||
(test-equal "non-GET query"
|
||||
'(200 404)
|
||||
(let ((path (string-append "/" (store-path-hash-part %item)
|
||||
".narinfo")))
|
||||
(map response-code
|
||||
(list (http-get (publish-uri path))
|
||||
(http-post (publish-uri path))))))
|
||||
|
||||
(test-end "publish")
|
||||
|
||||
Reference in New Issue
Block a user