[Privoxy-commits] [privoxy] 05/17: Add a test for the bundeswehr.de filter
User Git
git at git.privoxy.org
Wed Dec 10 08:04:30 CET 2025
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit bbac7319355af187baa7aab38e8b7f8a16c3ee18
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sun Dec 7 13:42:24 2025 +0100
Add a test for the bundeswehr.de filter
---
tests/cts/content-filters/content-filters.action | 3 ++
tests/cts/content-filters/data/test400 | 60 ++++++++++++++++++++++++
2 files changed, 63 insertions(+)
diff --git a/tests/cts/content-filters/content-filters.action b/tests/cts/content-filters/content-filters.action
index 7ebc7f67..97a5d3cc 100644
--- a/tests/cts/content-filters/content-filters.action
+++ b/tests/cts/content-filters/content-filters.action
@@ -87,3 +87,6 @@
{+filter{sourceforge}}
/sourceforge/
+
+{+filter{bundeswehr.de}}
+/bundeswehr.de/
diff --git a/tests/cts/content-filters/data/test400 b/tests/cts/content-filters/data/test400
new file mode 100644
index 00000000..75bea593
--- /dev/null
+++ b/tests/cts/content-filters/data/test400
@@ -0,0 +1,60 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+filter bundeswehr.de
+</keywords>
+</info>
+
+<reply>
+<data>
+HTTP/1.1 200 OK
+Date: Thu, 22 Jul 2010 11:22:33 GMT
+Connection: close
+Content-Type: text/html
+X-Control: swsclose
+
+<dialog id="PrivacyProtectionBanner" class="PrivacyProtectionBanner"
+</data>
+</reply>
+
+<proxy-reply>
+<data>
+HTTP/1.1 200 OK
+Date: Thu, 22 Jul 2010 11:22:33 GMT
+Connection: close
+Content-Type: text/html
+X-Control: swsclose
+Content-Length: 91
+
+<dialog id="PrivacyProtectionBanner" class="PrivacyProtectionBanner" style="display: none"
+</data>
+</proxy-reply>
+
+<client>
+<server>
+http
+</server>
+<name>
++filter{bundeswehr.de}
+</name>
+<features>
+proxy
+</features>
+<command>
+http://%HOSTIP:%HTTPPORT/bundeswehr.de/%TESTNUMBER
+</command>
+</client>
+
+<verify>
+<protocol>
+GET /bundeswehr.de/%TESTNUMBER HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+User-Agent: curl/%VERSION
+Accept: */*
+Connection: close
+
+</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