mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
publish: Add test for non-GET queries.
* tests/publish.scm ("non-GET query"): New test.
This commit is contained in:
parent
247384d069
commit
c1cd155aa8
1 changed files with 8 additions and 0 deletions
|
@ -483,4 +483,12 @@ (define %gzip-magic-bytes
|
|||
(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")
|
||||
|
|
Loading…
Reference in a new issue