[Privoxy-commits] [privoxy] 34/41: tests/cts: When there's lots of POST data, read it from a file

User Git git at git.privoxy.org
Wed Mar 20 12:39:11 CET 2024


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit 29457695ada443619934a571d53d2231eb19dcb0
Author: Roland Rosenfeld <roland at debian.org>
AuthorDate: Wed Jun 1 13:26:55 2022 +0200

    tests/cts: When there's lots of POST data, read it from a file
    
    ... instead of the command line (two more tests affected).
---
 tests/cts/client-body-filter-https/data/test12 | 5 ++++-
 tests/cts/client-body-filter-https/data/test17 | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

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>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list