--- a/tests/test-archive.t Thu Mar 21 22:09:15 2013 +0100
+++ b/tests/test-archive.t Thu Mar 21 23:27:37 2013 +0100
@@ -108,10 +108,15 @@
$ python getarchive.py "$TIP" gz foo | gunzip | tar tf - 2>/dev/null
test-archive-2c0277f05ed4/foo
+test that we detect file patterns that match no files
+
+ $ python getarchive.py "$TIP" gz foobar
+ HTTP Error 404: file(s) not found: foobar
+
test that we reject unsafe patterns
$ python getarchive.py "$TIP" gz relre:baz
- HTTP Error 403: Archive pattern not allowed: relre:baz
+ HTTP Error 404: file(s) not found: relre:baz
$ "$TESTDIR/killdaemons.py" $DAEMON_PIDS