[Privoxy-commits] [privoxy] 23/38: Add test for the content filter "taz.de"
User Git
git at git.privoxy.org
Thu Apr 9 09:37:21 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 5aec32d2819c06f631389d8eba3d5bd4f1bbaaf4
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Apr 2 10:22:40 2026 +0200
Add test for the content filter "taz.de"
---
tests/cts/content-filters/content-filters.action | 3 ++
tests/cts/content-filters/data/test26 | 69 ++++++++++++++++++++++++
2 files changed, 72 insertions(+)
diff --git a/tests/cts/content-filters/content-filters.action b/tests/cts/content-filters/content-filters.action
index 97a5d3cc..b64b0b7f 100644
--- a/tests/cts/content-filters/content-filters.action
+++ b/tests/cts/content-filters/content-filters.action
@@ -88,5 +88,8 @@
{+filter{sourceforge}}
/sourceforge/
+{+filter{taz.de}}
+/taz\.de/
+
{+filter{bundeswehr.de}}
/bundeswehr.de/
diff --git a/tests/cts/content-filters/data/test26 b/tests/cts/content-filters/data/test26
new file mode 100644
index 00000000..4225ae6f
--- /dev/null
+++ b/tests/cts/content-filters/data/test26
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="US-ASCII"?>
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+filter taz.de
+</keywords>
+</info>
+
+<reply>
+<data>
+HTTP/1.1 200 OK%CR
+Date: Thu, 22 Jul 2010 11:22:33 GMT%CR
+Connection: close%CR
+Content-Type: text/html%CR
+X-Control: swsclose%CR
+%CR
+# Here's a string the taz.de filter should modify:
+
+# pcrs command 1:
+
+if ( marOtaz_de.getCookie('tzi_paywall_payed') === 'yesHide') return;
+</data>
+</reply>
+
+<proxy-reply>
+<data>
+HTTP/1.1 200 OK%CR
+Date: Thu, 22 Jul 2010 11:22:33 GMT%CR
+Connection: close%CR
+Content-Type: text/html%CR
+X-Control: swsclose%CR
+Content-Length: 89%CR
+%CR
+# Here's a string the taz.de filter should modify:
+
+# pcrs command 1:
+
+if (true) return;
+</data>
+</proxy-reply>
+
+<client>
+<server>
+http
+</server>
+<name>
++filter{taz.de}
+</name>
+<features>
+proxy
+</features>
+<command>
+http://%HOSTIP:%HTTPPORT/taz.de/%TESTNUMBER
+</command>
+</client>
+
+<verify>
+<protocol>
+GET /taz.de/%TESTNUMBER HTTP/1.1%CR
+Host: %HOSTIP:%HTTPPORT%CR
+User-Agent: curl/%VERSION%CR
+Accept: */*%CR
+Connection: close%CR
+%CR
+</protocol>
+</verify>
+</testcase>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list