From: Roland Rosenfeld <roland@debian.org> Date: Wed, 1 Jun 2022 11:26:55 +0000 (+0200) Subject: tests/cts: When there's lots of POST data, read it from a file X-Git-Tag: v_4_0_0~81 X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/static/faq/@proxy-info-url@?a=commitdiff_plain;h=29457695ada443619934a571d53d2231eb19dcb0;p=privoxy.git tests/cts: When there's lots of POST data, read it from a file ... instead of the command line (two more tests affected). --- diff --git a/tests/cts/client-body-filter-https/data/test12 b/tests/cts/client-body-filter-https/data/test12 index 42d3312b..3cb20465 100644 --- a/tests/cts/client-body-filter-https/data/test12 +++ b/tests/cts/client-body-filter-https/data/test12 @@ -60,8 +60,11 @@ proxy # Sending the first request to appease the test framework. # We mainly care about the second request which is too large for Privoxy to buffer it. <command> ---insecure https://%HOSTIP:%HTTPSPORT/first-request/%TESTNUMBER --next -d "blafasel%repeat[20000 x padding]%" --insecure https://%HOSTIP:%HTTPSPORT/second-request/%TESTNUMBER +--insecure https://%HOSTIP:%HTTPSPORT/first-request/%TESTNUMBER --next -d @log/post-data-%TESTNUMBER --insecure https://%HOSTIP:%HTTPSPORT/second-request/%TESTNUMBER </command> +<file name="log/post-data-%TESTNUMBER"> +blafasel%repeat[20000 x padding]% +</file> </client> <verify> diff --git a/tests/cts/client-body-filter-https/data/test17 b/tests/cts/client-body-filter-https/data/test17 index 57ba21c1..8c87f0fd 100644 --- a/tests/cts/client-body-filter-https/data/test17 +++ b/tests/cts/client-body-filter-https/data/test17 @@ -57,8 +57,11 @@ proxy </features> # We mainly care about the second request which is too large for Privoxy to buffer it. <command> ---insecure https://%HOSTIP:%HTTPSPORT/first-request/%TESTNUMBER --next -d "blafasel%repeat[20000 x padding]%" --insecure https://%HOSTIP:%HTTPSPORT/second-request/%TESTNUMBER +--insecure https://%HOSTIP:%HTTPSPORT/first-request/%TESTNUMBER --next -d @log/post-data-%TESTNUMBER --insecure https://%HOSTIP:%HTTPSPORT/second-request/%TESTNUMBER </command> +<file name="log/post-data-%TESTNUMBER"> +blafasel%repeat[20000 x padding]% +</file> </client> <verify>