From: Fabian Keil <fk@fabiankeil.de>
Date: Wed, 3 Feb 2021 10:41:43 +0000 (+0100)
Subject: Add test scenario user-manual-https
X-Git-Tag: v_4_0_0~96
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/user-manual/developer-manual/faq/static/gitweb.js?a=commitdiff_plain;h=d8ed22406a78a7f85ea4a8ce250e04a209c0b6f6;p=privoxy.git

Add test scenario user-manual-https

Sponsored by: Privoxy project funds collected at SPI
---

diff --git a/tests/cts/user-manual-https/data/test1 b/tests/cts/user-manual-https/data/test1
new file mode 100644
index 00000000..e9d6acb7
--- /dev/null
+++ b/tests/cts/user-manual-https/data/test1
@@ -0,0 +1,27 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+</keywords>
+</info>
+
+<client>
+<server>
+none
+</server>
+<name>
+CGI request for the user manual while delivery has been disabled by specifying a https:// URL
+</name>
+<command>
+-s --write-out '%{stderr}%{response_code}\n' --head http://config.privoxy.org/user-manual/
+</command>
+</client>
+
+# It would be better to test more than just the status code
+<verify>
+<stderr>
+404
+</stderr>
+</verify>
+</testcase>
diff --git a/tests/cts/user-manual-https/privoxy.conf b/tests/cts/user-manual-https/privoxy.conf
new file mode 100644
index 00000000..644195cb
--- /dev/null
+++ b/tests/cts/user-manual-https/privoxy.conf
@@ -0,0 +1,18 @@
+listen-address 127.0.0.1:9119
+
+debug     1 # Log the destination for each request Privoxy let through. See also debug 1024.
+debug     2 # show each connection status
+debug     4 # show tagging-related messages
+debug     8 # show header parsing
+debug    32 # debug force feature
+debug    64 # debug regular expression filters
+debug   128 # debug redirects
+debug   256 # debug GIF de-animation
+debug   512 # Common Log Format
+debug  1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
+debug  4096 # Startup banner and warnings.
+debug  8192 # Non-fatal errors
+
+templdir ../../../templates
+user-manual https://www.privoxy.org/user-manual/
+