1 #############################################################################
2 # $Id: regression-tests.action,v 1.15 2008/08/14 18:33:37 fabiankeil Exp $
3 #############################################################################
5 # This is a configuration file for Privoxy-Regression-Test
6 # (included in the source tarball's tools directory).
8 # After referencing it in your Privoxy configuration both Privoxy and
9 # Privoxy-Regression-Test should be good to go.
11 #############################################################################
13 # Copyright (c) 2007-2008 Fabian Keil <fk@fabiankeil.de>
15 # Permission to use, copy, modify, and distribute this software for any
16 # purpose with or without fee is hereby granted, provided that the above
17 # copyright notice and this permission notice appear in all copies.
19 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
20 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
21 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
22 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
23 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
24 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
25 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
27 #############################################################################
30 for-privoxy-version=3.0.9
32 # Some dependencies Privoxy-Regression-Test should know about:
34 # Level 9 needs = config line user-manual\s+(/|[A-Za-z]:)
35 # Level 12 needs = config line enable-edit-actions\s+1
37 #######################################################
38 # Enable taggers to activate the tests on demand
39 # and suppress hiding the User-Agent for
40 # Privoxy-Regression-Test to save log space.
41 #######################################################
43 +client-header-tagger{user-agent} \
44 +client-header-tagger{privoxy-control} \
45 +client-header-filter{privoxy-control} \
52 TAG:^User-Agent: Privoxy-Regression-Test
54 #######################################################
55 # Test accept-language{}.
56 #######################################################
58 # Set Header = Accept-Language: de-de
59 # Expect Header = Accept-Language: en-gb
60 {+hide-accept-language{en-gb}}
61 TAG:^hide-accept-language\{en-gb\}$
63 # Set Header = Accept-Language: de-de
64 # Expect Header = REMOVAL
65 {+hide-accept-language{block}}
66 TAG:^hide-accept-language\{block\}$
68 #######################################################
69 # Sections for hide-referrer{} to test:
71 # 1) conditional-block
72 # 2) conditional-forge
75 # 5) a parameter that looks like a valid fake referrer
76 # 6) a parameter that looks like an invalid fake referrer
77 #######################################################
79 # Set Header = Referer: http://www.example.org/foo
80 # Expect Header = REMOVAL
82 # Set Header = Referer: http://p.p/foo
83 # Expect Header = NO CHANGE
84 {+hide-referrer{conditional-block}}
85 TAG:^hide-referrer\{conditional-block\}$
87 # Set Header = Referer: http://www.example.org/foo
88 # Expect Header = Referer: http://p.p/
90 # Set Header = Referer: http://p.p/foo
91 # Expect Header = NO CHANGE
92 {+hide-referrer{conditional-forge}}
93 TAG:^hide-referrer\{conditional-forge\}$
95 # Set Header = Referer: http://www.example.org/foo
96 # Expect Header = Referer: http://p.p/
97 {+hide-referrer{forge}}
98 TAG:^hide-referrer\{forge\}$
100 # Set Header = Referer: http://www.example.org/foo
101 # Expect Header = REMOVAL
102 {+hide-referrer{block}}
103 TAG:^hide-referrer\{block\}$
105 # Set Header = Referer: http://www.example.org/foo
106 # Expect Header = Referer: invalid
107 {+hide-referrer{invalid}}
108 TAG:^hide-referrer\{invalid\}$
110 # Set Header = Referer: http://www.example.org/asdf
111 # Expect Header = Referer: http://www.privoxy.org/
112 {+hide-referrer{http://www.privoxy.org/}}
113 TAG:^hide-referrer\{http://www.privoxy.org/\}$
116 #TAG:^hide-referrer\{\}$
118 #######################################################
119 # Test hide-user-agent{}.
120 #######################################################
122 # Set Header = User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; de-CH; rv:1.8.1.6) Gecko/20070806 Firefox/2.0.0.6
123 # Expect Header = User-Agent: Mozilla/5.0 (X11; U; FreeBSD alpha; en-GB; rv:1.8.1.6) Gecko/20070913 Firefox/2.0.0.6
124 {+hide-user-agent{Mozilla/5.0 (X11; U; FreeBSD alpha; en-GB; rv:1.8.1.6) Gecko/20070913 Firefox/2.0.0.6}}
125 TAG:^hide-user-agent\{Mozilla/5\.0 \(X11; U; FreeBSD alpha; en-GB; rv:1\.8\.1\.6\) Gecko/20070913 Firefox/2\.0\.0\.6\}$
127 # XXX: Check the code that is tested here.
128 # Set Header = ua-blah: blah
129 # Expect Header = REMOVAL
130 {+hide-user-agent{block}}
131 TAG:^hide-user-agent{block}$
133 # Set Header = ua-blah: blah
134 # Expect Header = NO CHANGE
136 TAG:^-hide-user-agent{block}$
139 #######################################################
141 #######################################################
143 # Set Header = X-Whatever: foo
144 # Expect Header = X-Custom-Header: yes, please
146 {+add-header{X-Custom-Header: yes, please}}
147 TAG:^add-header\{X-Custom-Header: yes, please\}$
149 #######################################################
150 # Test client-header-filter{hide-tor-exit-notation}.
151 #######################################################
153 # Set Header = Referer: http://p.p.zwiebelsuppe.exit/
154 # Expect Header = Referer: http://p.p/
156 # Set Header = Referer: http://p.p.zwiebelsuppe.exit/foo/bar/baaz/
157 # Expect Header = Referer: http://p.p/foo/bar/baaz/
159 # Set Header = Referer: http://p.p/
160 # Expect Header = NO CHANGE
162 # Set Header = Referer: http://config.privoxy.org.zwiebelsuppe.exit/foo/bar/baaz.html
163 # Expect Header = Referer: http://config.privoxy.org/foo/bar/baaz.html
165 # Set Header = Host: p.p.zwiebelsuppe.exit
166 # Expect Header = Host: p.p
168 # Set Header = Host: p.p
169 # Expect Header = NO CHANGE
171 # Set Header = Referer: http://config.privoxy.org.ad356ef8e87a89e6c898b74500d58607ac691178.exit/foo/baaz.html
172 # Expect Header = Referer: http://config.privoxy.org/foo/baaz.html
174 {+client-header-filter{hide-tor-exit-notation} -hide-referer}
175 TAG:^client-header-filter\{hide-tor-exit-notation\}$
177 #######################################################
178 # Test crunch-client-header{}.
179 #######################################################
181 # Set Header = Content-Type: text/html
182 # Expect Header = REMOVAL
184 # Set Header = Content-Type: text/html; charset=4711
185 # Expect Header = REMOVAL
187 # Set Header = Content-Type: text/plain
188 # Expect Header = NO CHANGE
190 {+crunch-client-header{text/html}}
191 TAG:^crunch-client-header\{text/plain\}$
194 #######################################################
195 # Test crunch-if-none-match.
196 #######################################################
198 # Set Header = If-None-Match: 8987afd239d2093kd2309kd
199 # Expect Header = REMOVAL
201 # Set Header = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
202 # Expect Header = REMOVAL
204 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
205 # Expect Header = NO CHANGE
207 {+crunch-if-none-match -hide-if-modified-since}
208 TAG:^crunch-if-none-match$
210 #######################################################
211 # Test hide-if-modified-since
212 #######################################################
214 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
215 # Expect Header = REMOVAL
217 # Set Header = If-None-Match: 82c3cb50c984ef11b1fed749949b2a16
218 # Expect Header = NO CHANGE
220 {+hide-if-modified-since{block} -crunch-if-none-match}
221 TAG:^hide-if-modified-since\{block\}$
223 # Set Header = If-Modified-Since: Gee, this date is invalid
224 # Expect Header = REMOVAL
225 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
226 # Expect Header = SOME CHANGE
228 {+hide-if-modified-since{-60} -crunch-if-none-match}
229 TAG:^hide-if-modified-since\{-60\}$
231 # Set Header = If-Modified-Since: Gee, this date is invalid
232 # Expect Header = REMOVAL
233 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
234 # Expect Header = SOME CHANGE
236 {+hide-if-modified-since{+60} -crunch-if-none-match}
237 TAG:^hide-if-modified-since\{\+60\}$
239 # Set Header = If-Modified-Since: Gee, this date is invalid
240 # Expect Header = REMOVAL
241 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
242 # Expect Header = SOME CHANGE
244 {+hide-if-modified-since{60} -crunch-if-none-match}
245 TAG:^hide-if-modified-since\{60\}$
247 # Set Header = If-Modified-Since: Gee, this date is invalid
248 # Expect Header = REMOVAL
249 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
250 # Expect Header = NO CHANGE
252 {+hide-if-modified-since{+0} -crunch-if-none-match}
253 TAG:^hide-if-modified-since\{\+0\}$
255 # Set Header = If-Modified-Since: Gee, this date is invalid
256 # Expect Header = REMOVAL
257 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
258 # Expect Header = NO CHANGE
260 {+hide-if-modified-since{-0} -crunch-if-none-match}
261 TAG:^hide-if-modified-since\{-0\}$
263 # Set Header = If-Modified-Since: Gee, this date is invalid
264 # Expect Header = REMOVAL
265 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
266 # Expect Header = NO CHANGE
268 {+hide-if-modified-since{0} -crunch-if-none-match}
269 TAG:^hide-if-modified-since\{0\}$
271 # Set Header = If-Modified-Since: Gee, this date is invalid
272 # Expect Header = REMOVAL
273 # Set Header = If-Modified-Since: Thu, 04 Oct 2007 09:56:35 GMT
274 # Expect Header = NO CHANGE
276 {+hide-if-modified-since{NaN} -crunch-if-none-match}
277 TAG:^hide-if-modified-since\{NaN\}$
280 #######################################################
281 # Test crunch-outgoing-cookies
282 #######################################################
284 # Set Header = If-Modified-Since: Gee, this date is invalid
285 # Expect Header = NO CHANGE
287 # Set Header = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
288 # Expect Header = REMOVAL
290 +crunch-outgoing-cookies \
291 -crunch-incoming-cookies \
292 -session-cookies-only \
293 -hide-if-modified-since \
295 TAG:^crunch-outgoing-cookies$
297 #######################################################
298 # Test session-cookies-only
300 # XXX: pretty useless as session-cookies-only doesn't
301 # affect client headers.
302 #######################################################
304 # Set Header = Cookie: NSC_gffe-iuuq-mc-wtfswfs=8efb330d3660;expires=Thu, 04-Oct-07 19:11:34 GMT;path=/
305 # Expect Header = NO CHANGE
307 # Set Header = Cookie: PREF=ID=6cf0abd34262:TM=117335617:LM=1617:S=jZypyJ7LPiwFi1_
308 # Expect Header = NO CHANGE
310 -crunch-outgoing-cookies \
311 -crunch-incoming-cookies \
312 +session-cookies-only \
313 -hide-if-modified-since \
315 TAG:^session-cookies-only$
317 #######################################################
318 # Test hide-forwarded-for-headers
319 #######################################################
321 # Set Header = X-Forwarded-For: 10.0.0.1
322 # Expect Header = REMOVAL
324 +hide-forwarded-for-headers \
325 -change-x-forwarded-for \
327 TAG:^hide-forwarded-for-headers$
329 # Set Header = X-Forwarded-For: 10.0.0.1
330 # Expect Header = NO CHANGE
332 -hide-forwarded-for-headers \
333 -change-x-forwarded-for \
335 TAG:^-hide-forwarded-for-headers$
337 # Set Header = X-Forwarded-For: 10.0.0.1
338 # Expect Header = REMOVAL
340 -hide-forwarded-for-headers \
341 +change-x-forwarded-for{block} \
343 TAG:^change-x-forwarded-for\{block\}$
345 # Set Header = X-Forwarded-For: 10.0.0.1
346 # Expect Header = SOME CHANGE
348 -hide-forwarded-for-headers \
349 +change-x-forwarded-for{add} \
351 TAG:^change-x-forwarded-for\{add\}$
353 #######################################################
354 # Test hide-from-header
355 #######################################################
357 # Set Header = From: schneewitchen@example.org
358 # Expect Header = REMOVAL
360 +hide-from-header{block}\
362 TAG:^hide-from-header\{block\}$
364 # Set Header = From: schneewitchen@example.org
365 # Expect Header = From: siebenzwerge@example.org
367 +hide-from-header{siebenzwerge@example.org}\
369 TAG:^hide-from-header\{siebenzwerge@example.org\}$
371 #######################################################
372 # Test prevent-compression
373 #######################################################
375 # Set Header = Accept-Encoding: gzip, deflate
376 # Expect Header = REMOVAL
378 # Set Header = Accept-Encoding: gzip
379 # Expect Header = REMOVAL
381 # Set Header = Accept-Encoding: deflate
382 # Expect Header = REMOVAL
384 +prevent-compression\
386 TAG:^prevent-compression$
388 #######################################################
389 # Test content filters which could cause problems with
391 #######################################################
393 # Set Header = Range: bytes=1234-5678
394 # Expect Header = REMOVAL
395 # Set Header = If-Range: bytes=1234-5678
396 # Expect Header = REMOVAL
397 # Set Header = Request-Range: bytes=1234-5678
398 # Expect Header = REMOVAL
400 +deanimate-gifs{last} \
403 TAG:^deanimate-gifs\{last\}$
405 # Set Header = Range: bytes=1234-5678
406 # Expect Header = REMOVAL
407 # Set Header = If-Range: bytes=1234-5678
408 # Expect Header = REMOVAL
409 # Set Header = Request-Range: bytes=1234-5678
410 # Expect Header = REMOVAL
413 +filter{banners-by-size} \
415 TAG:^filter\{banners-by-size\}$
417 # Set Header = Range: bytes=1234-5678
418 # Expect Header = NO CHANGE
419 # Set Header = If-Range: bytes=1234-5678
420 # Expect Header = NO CHANGE
421 # Set Header = Request-Range: bytes=1234-5678
422 # Expect Header = NO CHANGE
427 TAG:^no-content-filter$
429 # Set Header = Connection: keep-alive
430 # Expect Header = Connection: close
431 # Set Header = Connection:
432 # Expect Header = Connection: close
434 TAG:^Connection: close$
436 # XXX: Removing a header by not specifying a value is
437 # an inherited curl feature and could be viewed as a
438 # bug as far as Privoxy-Regression-Test is concerned.
441 # Expect Header = Host: p.p
445 # Set Header = Host: whatever.example.org
446 # Expect Header = NO CHANGE
448 TAG:^Host header other than the target host$
450 # XXX: check the RFC to use a real value
451 # Set Header = Keep-Alive: Yes
452 # Expect Header = REMOVAL
454 TAG:^Keep-Alive header removal$
456 # XXX: check the RFC to use a real value
457 # Set Header = proxy-connection: keep-alive
458 # Expect Header = REMOVAL
460 TAG:^Proxy-Connection removal$
462 # Set Header = Proxy-Connection: keep-alive
463 # Expect Header = REMOVAL
465 TAG:^Proxy-Connection removal$
467 # These are somewhat redundant when testing with
468 # GET requests, but I want to remember then when
469 # TRACE requests are supported.
471 # Set Header = Max-Forwards: 0
472 # Expect Header = NO CHANGE
473 # Set Header = Max-Forwards: 1
474 # Expect Header = NO CHANGE
475 # Set Header = Max-Forwards: -1
476 # Expect Header = NO CHANGE
477 # Set Header = Max-Forwards: 3
478 # Expect Header = NO CHANGE
480 TAG:^Max-Forwards header without TRACE method$
482 ################################################################
484 # Fairly dumb tests for Privoxy CGI pages.
486 # These are mainly useful for checking for memory leaks
487 # with Valgrind or whether or not the user manual is installed
488 # correctly and are unlikely to actually detect any
490 # Note that if "Expect Status Code" is missing, 200 is implied.
492 ################################################################
494 # Fetch Test = http://p.p/
495 # Will fail if compiled with FEATURE_GRACEFUL_TERMINATION
496 # Fetch Test = http://p.p/die
497 # Expect Status Code = 404
498 # Fetch Test = http://p.p/show-status
499 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=0
500 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=0
501 # XXX: for the invalid ones we probably shouldn't return status code 200.
502 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=100
503 # Fetch Test = http://config.privoxy.org/show-status?file=actions&index=NaN
504 # Fetch Test = http://config.privoxy.org/show-status?file=actions
505 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=100
506 # Fetch Test = http://config.privoxy.org/show-status?file=filter&index=NaN
507 # Fetch Test = http://config.privoxy.org/show-status?file=filter
508 # Fetch Test = http://config.privoxy.org/show-status?file=invalid
509 # Fetch Test = http://config.privoxy.org/show-status?file=trust
510 # Fetch Test = http://p.p/show-version
511 # Fetch Test = http://p.p/show-request
512 # Fetch Test = http://p.p/show-url-info
513 # Fetch Test = http://p.p/show-url-info?url=www.privoxy.org%2F
514 # Fetch Test = http://p.p/show-url-info?url=http:%2F%2Fwww.privoxy.org%2F
515 # Fetch Test = http://p.p/show-url-info?url=HTTp:%2F%2Fwww.privoxy.org%2F
516 # Fetch Test = http://p.p/show-url-info?url=https:%2F%2Fwww.privoxy.org%2F
517 # Fetch Test = http://p.p/show-url-info?url=HtTps:%2F%2Fwww.privoxy.org%2F
518 # Fetch Test = http://p.p/show-url-info?url=ftp:%2F%2Fwww.privoxy.org%2F
519 # Fetch Test = http://p.p/show-url-info?url=FTp:%2F%2Fwww.privoxy.org%2F
520 # Fetch Test = http://p.p/show-url-info?url=
521 # Fetch Test = http://p.p/show-url-info?url=%2F
522 # Fetch Test = http://p.p/toggle
523 # Fetch Test = http://p.p/edit-actions
524 # Fetch Test = http://p.p/eaa
525 # Fetch Test = http://p.p/eau
526 # Fetch Test = http://p.p/ear
527 # Fetch Test = http://p.p/eal
528 # Fetch Test = http://p.p/eafu
529 # Fetch Test = http://p.p/eas
530 # Fetch Test = http://p.p/easa
531 # Fetch Test = http://p.p/easr
532 # Fetch Test = http://p.p/eass
533 # Fetch Test = http://p.p/edit-actions-for-url
534 # Fetch Test = http://p.p/edit-actions-list
535 # Fetch Test = http://p.p/edit-actions-submit
536 # Fetch Test = http://p.p/edit-actions-url
537 # Fetch Test = http://p.p/edit-actions-url-form
538 # Fetch Test = http://p.p/edit-actions-add-url
539 # Fetch Test = http://p.p/edit-actions-add-url-form
540 # Fetch Test = http://p.p/edit-actions-remove-url
541 # Fetch Test = http://p.p/edit-actions-remove-url-form
542 # Fetch Test = http://p.p/edit-actions-section-add
543 # Fetch Test = http://p.p/edit-actions-section-remove
544 # Fetch Test = http://p.p/edit-actions-section-swap
545 # Fetch Test = http://p.p/error-favicon.ico
546 # Fetch Test = http://p.p/favicon.ico
547 # Fetch Test = http://p.p/robots.txt
548 # Fetch Test = http://p.p/send-banner
549 # Fetch Test = http://p.p/send-stylesheet
550 # Fetch Test = http://p.p/t
551 # Fetch Test = http://p.p/url-info-osd.xml
553 # Trusted CGI Request = http://p.p/edit-actions
554 # Expect Status Code = 302
555 # Level = 12 # Depends on the CGI editor being enabled
556 # Fetch Test = http://p.p/does-not-exist
557 # Expect Status Code = 404
558 # Trusted CGI Request = http://p.p/eaa
559 # Trusted CGI Request = http://p.p/eau
560 # Trusted CGI Request = http://p.p/ear
561 # Trusted CGI Request = http://p.p/eal
562 # Trusted CGI Request = http://p.p/eafu
563 # Trusted CGI Request = http://p.p/eas
564 # Trusted CGI Request = http://p.p/easa
565 # Trusted CGI Request = http://p.p/easr
566 # Trusted CGI Request = http://p.p/eass
567 # Trusted CGI Request = http://p.p/edit-actions-for-url
568 # Trusted CGI Request = http://p.p/edit-actions-list
569 # Trusted CGI Request = http://p.p/edit-actions-submit
570 # Trusted CGI Request = http://p.p/edit-actions-url
571 # Trusted CGI Request = http://p.p/edit-actions-url-form
572 # Trusted CGI Request = http://p.p/edit-actions-add-url
573 # Trusted CGI Request = http://p.p/edit-actions-add-url-form
574 # Trusted CGI Request = http://p.p/edit-actions-remove-url
575 # Trusted CGI Request = http://p.p/edit-actions-remove-url-form
576 # Trusted CGI Request = http://p.p/edit-actions-section-add
577 # Trusted CGI Request = http://p.p/edit-actions-section-remove
578 # Trusted CGI Request = http://p.p/edit-actions-section-swap
579 # Trusted CGI Request = http://p.p/send-stylesheet
581 # The following tests depend on Privoxy being configured to deliver the user manual
583 # Fetch Test = http://p.p/user-manual
584 # Expect Status Code = 302
586 # Fetch Test = http://p.p/user-manual/
588 # Fetch Test = http://p.p/user-manual/actions-file.html
590 # Fetch Test = http://p.p/user-manual/appendix.html
592 # Fetch Test = http://p.p/user-manual/config.html
594 # Fetch Test = http://p.p/user-manual/configuration.html
596 # Fetch Test = http://p.p/user-manual/contact.html
598 # Fetch Test = http://p.p/user-manual/copyright.html
600 # Fetch Test = http://p.p/user-manual/files-in-use.jpg
602 # Fetch Test = http://p.p/user-manual/filter-file.html
604 # Fetch Test = http://p.p/user-manual/index.html
606 # Fetch Test = http://p.p/user-manual/installation.html
608 # Fetch Test = http://p.p/user-manual/introduction.html
610 # Fetch Test = http://p.p/user-manual/p_doc.css
612 # Fetch Test = http://p.p/user-manual/proxy2.jpg
614 # Fetch Test = http://p.p/user-manual/proxy_setup.jpg
616 # Fetch Test = http://p.p/user-manual/quickstart.html
618 # Fetch Test = http://p.p/user-manual/seealso.html
620 # Fetch Test = http://p.p/user-manual/startup.html
622 # Fetch Test = http://p.p/user-manual/templates.html
624 # Fetch Test = http://p.p/user-manual/upgradersnote.html
626 # Fetch Test = http://p.p/user-manual/whatsnew.html
630 # Method Test = OPTIONS
637 # Method Test = DELETE
638 # Method Test = OPTIONS
639 # Method Test = TRACE
640 # Method Test = CONNECT
641 # Method Test = PROPFIND
642 # Method Test = PROPPATCH
645 # Method Test = MKCOL
647 # Method Test = UNLOCK
648 # Method Test = BCOPY
649 # Method Test = BMOVE
650 # Method Test = BDELETE
651 # Method Test = BPROPFIND
652 # Method Test = BPROPPATCH
653 # Method Test = SUBSCRIBE
654 # Method Test = UNSUBSCRIBE
655 # Method Test = NOTIFY
657 # Method Test = VERSION-CONTROL
658 # Method Test = REPORT
659 # Method Test = CHECKOUT
660 # Method Test = CHECKIN
661 # Method Test = UNCHECKOUT
662 # Method Test = MKWORKSPACE
663 # Method Test = UPDATE
664 # Method Test = LABEL
665 # Method Test = MERGE
666 # Method Test = BASELINE-CONTROL
667 # Method Test = MKACTIVITY
668 # Method Test = PRIVOXY-REGRESSION-TEST-IN-THE-HOUSE
669 # Expect Status Code = 400
671 {+block{Forbidden Port. You are not supposed to see this.}}
672 config.privoxy.org:1-/
676 config.privoxy.org:3,79-81/
679 # Fetch Test = http://oh-dear-this-hostname-is-so-very-long-that-it-can-not-possibly-be-forwarded-through-socks5-as-a-result-we-therefore-expect-privoxy-to-return-an-error-response-instead-of-forwarding-the-request-because-as-already-mentioned-this-host-is-really-very-long.example
680 # Expect Status Code = 503
681 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
682 oh-dear-this-hostname-is-so-very-long-that-it-can-not-possibly-be-forwarded-through-socks5-as-a-result-we-therefore-expect-privoxy-to-return-an-error-response-instead-of-forwarding-the-request-because-as-already-mentioned-this-host-is-really-very-long.example/
684 # Fetch Test = http://oh-dear-this-hostname-is-short-enough-but-there-is-no-socks-server-listening.example
685 # Expect Status Code = 503
686 {+forward-override{forward-socks5 127.0.0.1:12345 .}}
687 oh-dear-this-hostname-is-short-enough-but-there-is-no-socks-server-listening.example
689 # This one currently triggers the same error condition as the
690 # test above (socks5 server unreachable), but once Privoxy
691 # starts to properly reject invalid ports it should become useful.
693 # Fetch Test = http://invalid-forward5-gateway-port.example
694 # Expect Status Code = 503
695 {+forward-override{forward-socks5 127.0.0.1:-1 127.0.0.1:12345}}
696 invalid-forward5-gateway-port.example
698 # Fetch Test = http://forward5-null-gateway-host.example
699 # Expect Status Code = 503
700 {+forward-override{forward-socks5 :12345 127.0.0.1:12345}}
701 forward5-null-gateway-host.example
703 # Fetch Test = http://www.forbidden-connect.example:444/
705 # Expect Status Code = 403
706 {+limit-connect{443}}
707 www.forbidden-connect.example/
709 # Fetch Test = http://www.blocked-request.example/blocked-request
710 # Expect Status Code = 403
711 {+block{This request failed to make it to the target destination which means the test succeeded.}}
712 www.blocked-request.example/blocked-request
714 # Fetch Test = http://www.blocked-request.example/blocked-request-with-no-reason-specified
715 # Expect Status Code = 403
717 www.blocked-request.example/blocked-request-with-no-reason-specified
719 # Some domain pattern tests
721 {+block{domain pattern test}}
722 # Blocked URL = http://domain-pattern-test.example/
723 # Blocked URL = http://domain-pattern-test.example.org/
724 domain-pattern-test.example.
726 # Just in case there is no white-space fuzzer in the house ...
728 # Set Header = X-LWS-Test: no superfluous white space here
729 # Expect Header = NO CHANGE
730 # Set Header = X-LWS-Test: superfluous white space in the house
731 # Expect Header = X-LWS-Test: superfluous white space in the house
732 # Set Header = X-LWS-Test : superfluous white space in the house
733 # Expect Header = X-LWS-Test: superfluous white space in the house
734 # Set Header = X-LWS-Test: :superfluous white space in the house
735 # Expect Header = X-LWS-Test: :superfluous white space in the house
736 # Set Header = X-LWS-Test: :no superfluous white space here
737 # Expect Header = NO CHANGE
738 # Set Header = X-LWS-Test: superfluous white tabs in the house
739 # Expect Header = X-LWS-Test: superfluous white tabs in the house
740 # Set Header = X-LWS-Test : superfluous white tabs in the house
741 # Expect Header = X-LWS-Test: superfluous white tabs in the house
742 # Set Header = X-LWS-Test: "leave quoted lws alone"
743 # Expect Header = X-LWS-Test: "leave quoted lws alone"
744 # Set Header = X-LWS-Test: "leave quoted lws alone" thxbye
745 # Expect Header = X-LWS-Test: "leave quoted lws alone" thxbye
746 # Set Header = X-LWS-Test: " Do I Look like quoted text? Me thinks not.
747 # Expect Header = X-LWS-Test: " Do I Look like quoted text? Me thinks not.
748 # Set Header = X-LWS-Test: "This is quoted" this is not "but this is again"
749 # Expect Header = X-LWS-Test: "This is quoted" this is not "but this is again"
750 # Set Header = X-LWS-Test: "This is quoted" this is not "this is " but " this again is not
751 # Expect Header = X-LWS-Test: "This is quoted" this is not "this is " but " this again is not