From: William Lallemand Date: Wed, 10 Nov 2021 16:40:19 +0000 (+0100) Subject: REGTESTS: httpclient/lua: add greater body values X-Git-Tag: v2.5-dev14~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d19d7762c18a3519d262372ac2332a3ef81998cd;p=thirdparty%2Fhaproxy.git REGTESTS: httpclient/lua: add greater body values Add greater body values and checks in order to check the behavior with sizes greater than an haproxy buffer size. --- diff --git a/reg-tests/lua/lua_httpclient.vtc b/reg-tests/lua/lua_httpclient.vtc index a67e4bc00b..9d53cfe238 100644 --- a/reg-tests/lua/lua_httpclient.vtc +++ b/reg-tests/lua/lua_httpclient.vtc @@ -14,14 +14,18 @@ feature ignore_unknown_macro server s1 { rxreq - txresp -bodylen 200 + txresp -bodylen 54000 + expect req.body ~ ".*0 ABCDEFGHIJKLMNOPQRSTUVWXYZ.*" + expect req.body ~ ".*500 ABCDEFGHIJKLMNOPQRSTUVWXYZ.*" + expect req.body ~ ".*1000 ABCDEFGHIJKLMNOPQRSTUVWXYZ.*" + expect req.body ~ ".*1500 ABCDEFGHIJKLMNOPQRSTUVWXYZ.*" expect req.body ~ ".*2000 ABCDEFGHIJKLMNOPQRSTUVWXYZ" } -start server s2 { rxreq txresp - expect req.bodylen == 200 + expect req.bodylen == 54000 } -start haproxy h1 -conf {