git » gofer » commit c8fa1c9

debug: Test debug server's home page

author Alberto Bertogli
2022-10-05 23:55:22 UTC
committer Alberto Bertogli
2022-10-09 11:34:34 UTC
parent e73025303c3d9e5968845e1c3309a469886af9b1

debug: Test debug server's home page

This patch adds a test for the debug server's home page, to make sure
the template renders and displays properly.

test/test.sh +3 -0

diff --git a/test/test.sh b/test/test.sh
index ec992fc..a9e6096 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -218,6 +218,9 @@ exp https://localhost:8442/dar/ -bodyre '<a href="%C3%B1aca">ñaca</a>'
 # misconfiguration.
 exp http://localhost:8450/file/second -body "tracañaca\n"
 
+# Debug handler.
+exp "http://127.0.0.1:8459/" -bodyre "gofer @"
+
 # Check that the debug / handler only serves /.
 exp "http://127.0.0.1:8459/notexists" -status 404