diff options
author | Eric Wong <e@80x24.org> | 2014-04-10 23:33:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-11 22:23:58 +0000 |
commit | 9e98246f95c2b660c99949242251245b7bf14c45 (patch) | |
tree | 69fe743c2f7ac12d9c83ffbef9874134fc57288b /t | |
parent | 98352cd1c066d8cc16594f000509997cfd590985 (diff) | |
download | public-inbox-9e98246f95c2b660c99949242251245b7bf14c45.tar.gz |
These need better tests and verification, but it's something for now.
Diffstat (limited to 't')
-rw-r--r-- | t/cgi.t | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -133,6 +133,18 @@ EOF "mid.txt hit"); $res = cgi_run("/test/m/blahblah\@example.con.txt"); like($res->{head}, qr/Status: 404 Not Found/, "mid.txt miss"); + + $res = cgi_run("/test/m/blahblah\@example.com.html"); + like($res->{body}, qr/\A<html>/, "mid.html hit"); + like($res->{head}, qr/Status: 200 OK/, "200 response"); + $res = cgi_run("/test/m/blahblah\@example.con.html"); + like($res->{head}, qr/Status: 404 Not Found/, "mid.html miss"); + + $res = cgi_run("/test/f/blahblah\@example.com.html"); + like($res->{body}, qr/\A<html>/, "mid.html hit"); + like($res->{head}, qr/Status: 200 OK/, "200 response"); + $res = cgi_run("/test/f/blahblah\@example.con.html"); + like($res->{head}, qr/Status: 404 Not Found/, "mid.html miss"); } done_testing(); |