pushlog: test that querying a changeset that doesn't exist results in 404; r=edmorley
authorGregory Szorc <gps@mozilla.com>
Tue, 25 Nov 2014 12:46:34 -0800
changeset 359994 138a9f6d26b90ff583e4790557fdb080885b49bd
parent 359993 402c7da0ccae43f58a298a71e1f1be55385412a4
child 359995 589711a43d85045994ea5bb23ee0d7d818a9ea52
push id16998
push userrwood@mozilla.com
push dateMon, 02 May 2016 19:42:03 +0000
reviewersedmorley
pushlog: test that querying a changeset that doesn't exist results in 404; r=edmorley
hgext/pushlog-legacy/tests/test-hgweb.t
--- a/hgext/pushlog-legacy/tests/test-hgweb.t
+++ b/hgext/pushlog-legacy/tests/test-hgweb.t
@@ -61,8 +61,17 @@ Query for a single changeset
 
 Query for two changesets at once
 
   $ http "http://localhost:$HGPORT/json-pushes?changeset=91826025c77c&changeset=a79451771352" --header content-type --body-file body
   200
   content-type: application/json
 
   $ jsoncompare body $TESTDATA/test-repo-multi-changeset-query.json
+
+Query a changeset that doesn't exist
+
+  $ http "http://localhost:$HGPORT/json-pushes?changeset=foobar" --header content-type --body-file body
+  404
+  content-type: application/json
+
+  $ cat body
+  "unknown revision 'foobar'" (no-eol)