X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=regression-tests.action;h=1307c0e52c10a9a8e089bcd33ef7ac6026acb371;hp=33cdc36427d861d8bf7f95d3ab3a9e853885591a;hb=e8717b543314e3812597f1ffd98832af6baee9dd;hpb=62106a3fd9753a454c9f8a478ba74d22366c31ee diff --git a/regression-tests.action b/regression-tests.action index 33cdc364..1307c0e5 100644 --- a/regression-tests.action +++ b/regression-tests.action @@ -8,7 +8,7 @@ # ############################################################################# # -# Copyright (c) 2007-2018 Fabian Keil +# Copyright (c) 2007-2020 Fabian Keil # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -25,7 +25,7 @@ ############################################################################# {{settings}} -for-privoxy-version=3.0.27 +for-privoxy-version=3.0.29 # Some dependencies Privoxy-Regression-Test should know about: # @@ -46,6 +46,8 @@ for-privoxy-version=3.0.27 # Level 22 needs = config line enable-proxy-authentication-forwarding\s+0 # Level 23 needs = config line enable-proxy-authentication-forwarding\s+1 # Level 24 needs = feature status FEATURE_CLIENT_TAGS Yes +# Level 25 needs = feature status FEATURE_HTTPS_INSPECTION No +# Level 26 needs = feature status FEATURE_PCRE_HOST_PATTERNS Yes ####################################################### # Enable taggers to activate the tests on demand @@ -209,6 +211,28 @@ TAG:^add-header\{X-Custom-Header: yes, please\}$ # Expect Header = Referer: http://config.privoxy.org/foo/baaz.html TAG:^client-header-filter\{hide-tor-exit-notation\}$ +####################################################### +# Test client-header-filter{no-brotli-accepted}. +####################################################### + +{+client-header-filter{no-brotli-accepted}} +# Set Header = Accept-Encoding: gzip, deflate, br +# Expect Header = Accept-Encoding: gzip, deflate +# +# Set Header = Accept-Encoding: gzip, br, deflate +# Expect Header = Accept-Encoding: gzip, deflate +# +# Set Header = Accept-Encoding: br, gzip, deflate +# Expect Header = Accept-Encoding: gzip, deflate +# +# Set Header = Accept-Encoding: br +# Expect Header = Accept-Encoding: +# +# Set Header = Accept-Encoding: gzip, deflate +# Expect Header = NO CHANGE +# +TAG:^client-header-filter\{no-brotli-accepted\}$ + ####################################################### # Test crunch-client-header{}. ####################################################### @@ -722,48 +746,70 @@ TAG:^Proxy-Authorization header forwarding$ # Expect Status Code = 403 # Level = 21 # Fetch Test = http://p.p/edit-actions +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/eaa +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/eau +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/ear +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/eal +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/eafu +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/eas +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/easa +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/easr +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/eass +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/edit-actions-for-url +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/edit-actions-list # Level = 12 # Fetch Test = http://p.p/edit-actions-submit +# Expect Status Code = 403 # Level = 12 +# Expect Status Code = 403 # Fetch Test = http://p.p/edit-actions-url +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/edit-actions-url-form +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/edit-actions-add-url +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/edit-actions-add-url-form +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/edit-actions-remove-url +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/edit-actions-remove-url-form +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/edit-actions-section-add +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/edit-actions-section-remove +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/edit-actions-section-swap +# Expect Status Code = 403 # Level = 12 # Fetch Test = http://p.p/error-favicon.ico # Fetch Test = http://p.p/favicon.ico @@ -890,6 +936,7 @@ TAG:^Proxy-Authorization header forwarding$ # Method Test = OPTIONS # Method Test = TRACE # Method Test = CONNECT +# Level = 25 # Method Test = PROPFIND # Method Test = PROPPATCH # Method Test = MOVE @@ -1062,3 +1109,15 @@ redirect.example.net/ # Redirected URL = http://redirect2.example.net/blafasel?x=http://redirected.example.net/¶meter1=part-of-the-redirected-url1¶meter2=part-of-the-redirected-url1 # Redirect Destination = http://redirected.example.net/¶meter1=part-of-the-redirected-url1¶meter2=part-of-the-redirected-url1 redirect2.example.net/ + +{+delay-response{1}} +# Fetch Test = http://config.privoxy.org/show-url-info?url=http%3A%2F%2Fwww.example.com%2Fprivoxy-test-delay-response +config.privoxy.org/show-url-info\?url=http%3A%2F%2Fwww\.example\.com%2Fprivoxy-test-delay-response + +{+block{Block with pcre host pattern}} +# Blocked URL = http://aaa.example.org/ +# Level = 26 +PCRE-HOST-PATTERN:^a{3}\.example\.org$ +# Blocked URL = http://bbb.example.org/ +# Level = 26 +PCRE-HOST-PATTERN:^(bbb|ccc|ddd)\.example\.org$