]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: httpclient/lua: add greater body values
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 10 Nov 2021 16:40:19 +0000 (17:40 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 10 Nov 2021 16:40:19 +0000 (17:40 +0100)
Add greater body values and checks in order to check the behavior with
sizes greater than an haproxy buffer size.

reg-tests/lua/lua_httpclient.vtc

index a67e4bc00b63e06bc3e93ab925d37202b4d06d35..9d53cfe2381da9d251c26e98066439154a1a7ed4 100644 (file)
@@ -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 {