aboutsummaryrefslogtreecommitdiff
path: root/t/git-cgi.t
Commit message (Collapse)AuthorAge
* git-cgi.t: Exercise an alphanumeric, but non-ASCII, root pageSimon McVittie2019-02-03
| | | | | | | | | | | | | My previous attempt to reproduce this bug used a non-alphanumeric ASCII character. This is not currently considered to be a valid value for rootpage, although for a "do what I mean" approach, perhaps we should accept it and pass it through titlepage() or linkpage(). Using Chinese characters (which are considered to match [[:alnum:]] even though the Chinese script is not, strictly speaking, an alphabet), as in the original bug report, reproduces the bug. Signed-off-by: Simon McVittie <smcv@debian.org>
* git-cgi.t: Add a failing test for a blog with a non-ASCII rootpageSimon McVittie2019-01-31
| | | | | | | | This is one of several possible bug reports on "doc/bugs/About %2F problem" (I'm not sure what the actual bug being reported is). Signed-off-by: Simon McVittie <smcv@debian.org>
* git-cgi.t: Add a simple test for blog posts from a root pageSimon McVittie2019-01-31
| | | | | | This is the working base case for "doc/bugs/About %2F problem". Signed-off-by: Simon McVittie <smcv@debian.org>
* git-cgi.t: Print query string as a TAP diagnosticSimon McVittie2019-01-31
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* t/git-cgi.t: Wait 1 second before doing a revert that should succeedSimon McVittie2017-05-14
| | | | | | | | | | | This hopefully fixes a race condition in which the test failed around 6% of the time. If we don't wait, the mtime (which is rounded down to 1 second precision in the APIs we use) will not necessarily change, so the update will not necessarily cause the page to be refreshed. Bug-Debian: https://bugs.debian.org/862494
* git-cgi.t: when committing directly, make sure we have a valid authorSimon McVittie2017-01-09
| | | | | In the environment used on ci.debian.net, we have neither a name nor an email address.
* t/git-cgi.t: fix race conditionSimon McVittie2017-01-09
| | | | | We need the changes to take place at least 1 second after the first rebuild, so that the changed files are seen to have changed.
* git: Add test coverage for reverting attachmentsSimon McVittie2016-12-28
|
* Add automated test for using the CGI with git, including CVE-2016-10026Simon McVittie2016-12-28