From 29457695ada443619934a571d53d2231eb19dcb0 Mon Sep 17 00:00:00 2001
From: Roland Rosenfeld <roland@debian.org>
Date: Wed, 1 Jun 2022 13:26:55 +0200
Subject: [PATCH] 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>
-- 
2.49.0