From 9e98246f95c2b660c99949242251245b7bf14c45 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 10 Apr 2014 23:33:48 +0000 Subject: cgi: wire up HTML pages for messages These need better tests and verification, but it's something for now. --- t/cgi.t | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 't') diff --git a/t/cgi.t b/t/cgi.t index 2c4c824c..afbe604f 100644 --- a/t/cgi.t +++ b/t/cgi.t @@ -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/, "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/, "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(); -- cgit v1.2.3-24-ge0c7