From 024e028e59f9ca6deb1d8683963f6ba4b37fd403 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 3 Feb 2021 11:36:51 +0100 Subject: [PATCH] Add test scenario user-manual-http Sponsored by: Privoxy project funds collected at SPI --- tests/cts/user-manual-http/data/test1 | 27 +++++++++++++++++++++++++ tests/cts/user-manual-http/privoxy.conf | 18 +++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 tests/cts/user-manual-http/data/test1 create mode 100644 tests/cts/user-manual-http/privoxy.conf diff --git a/tests/cts/user-manual-http/data/test1 b/tests/cts/user-manual-http/data/test1 new file mode 100644 index 00000000..ee986ba0 --- /dev/null +++ b/tests/cts/user-manual-http/data/test1 @@ -0,0 +1,27 @@ + + + +HTTP +HTTP GET + + + + + +none + + +CGI request for the user manual while delivery has been disabled by specifying a http:// URL + + +-s --write-out '%{stderr}%{response_code}\n' --head http://config.privoxy.org/user-manual/ + + + +# It would be better to test more than just the status code + + +404 + + + diff --git a/tests/cts/user-manual-http/privoxy.conf b/tests/cts/user-manual-http/privoxy.conf new file mode 100644 index 00000000..e2d74e7d --- /dev/null +++ b/tests/cts/user-manual-http/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 http://www.privoxy.org/user-manual/ + -- 2.39.2