diff --git a/tests/publish.scm b/tests/publish.scm
index 8c88a8c93d5a6e5ba52a9e0dc9cbf5d956b09665..a4a52a4efe7985ec620cd0f6633bb5012f80651f 100644
--- a/tests/publish.scm
+++ b/tests/publish.scm
@@ -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")