[Privoxy-commits] [privoxy] 01/02: Make test4 from the acl-permit-access-with-exceptions scenario more reliable
User Git
git at git.privoxy.org
Tue May 19 17:26:55 CEST 2026
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 669b9ffa988d8eb771dc46b9eb5c891795f8950b
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Tue May 19 17:09:59 2026 +0200
Make test4 from the acl-permit-access-with-exceptions scenario more reliable
As Roland reported on privoxy-devel@, it previously failed
if there was a server listening at 127.0.0.1:80.
Solve the issue by testing whether or not the client can
reach the HTTP server from curl's test suite through
Privoxy.
---
.../acl-permit-access-with-exceptions/data/test4 | 25 +++++++++++-----------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/tests/cts/acl-permit-access-with-exceptions/data/test4 b/tests/cts/acl-permit-access-with-exceptions/data/test4
index d6f05787..9c8b177f 100644
--- a/tests/cts/acl-permit-access-with-exceptions/data/test4
+++ b/tests/cts/acl-permit-access-with-exceptions/data/test4
@@ -7,28 +7,27 @@ HTTP HEAD
</keywords>
</info>
-<proxy-reply>
+<reply>
<data>
-HTTP/1.1 503 Connect failed
-Content-Length: 44
-Content-Type: text/html
-Cache-Control: no-cache
-X-Ignore-Header: Date
+HTTP/1.1 200 Okay
+Content-Type: text/plain
Date: Wed, 01 Apr 2026 07:30:49 GMT
-Last-Modified: Wed, 08 Jun 1955 12:00:00 GMT
-Expires: Sat, 17 Jun 2000 12:00:00 GMT
-Pragma: no-cache
+Connection: close
+X-Control: swsclose
-Could not connect to destination 127.0.0.1.
+Enjoy this message, most venerable client.
</data>
-</proxy-reply>
+</reply>
<client>
+<server>
+http
+</server>
<name>
-Request from client address from denied network range
+Request from client address from denied network range with explicit permission
</name>
<command>
---interface 127.0.1.3 http://127.0.0.1/%TESTNUMBER
+--interface 127.0.1.3 http://127.0.0.1:%HTTPPORT/%TESTNUMBER
</command>
<precheck>
%PERL $TESTDIR/../../bind-to-address.pl 127.0.1.3
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list