For e29.vtc, also execute a reasonably complex regex match

parent a0e31b70
...@@ -17,6 +17,11 @@ server s1 { ...@@ -17,6 +17,11 @@ server s1 {
} -start } -start
varnish v1 -arg "-p feature=+esi_include_onerror" -vcl+backend { varnish v1 -arg "-p feature=+esi_include_onerror" -vcl+backend {
sub vcl_deliver {
# ref r01576.vtc
set resp.http.torture =
req.url + "${string,repeat,128,AB}" ~ "^/(A{1,2}B)+$";
}
sub vcl_backend_response { sub vcl_backend_response {
set beresp.do_esi = true; set beresp.do_esi = true;
set beresp.do_gzip = true; set beresp.do_gzip = true;
...@@ -24,6 +29,7 @@ varnish v1 -arg "-p feature=+esi_include_onerror" -vcl+backend { ...@@ -24,6 +29,7 @@ varnish v1 -arg "-p feature=+esi_include_onerror" -vcl+backend {
} -start } -start
logexpect l1 -v v1 -g raw { logexpect l1 -v v1 -g raw {
fail add * VCL_Error {Regexp matching failed}
expect * * VCL_Error {^ESI depth limit reached} expect * * VCL_Error {^ESI depth limit reached}
expect 0 = VCL_Error {^ESI depth limit reached} expect 0 = VCL_Error {^ESI depth limit reached}
expect * * VCL_Error {^ESI depth limit reached} expect * * VCL_Error {^ESI depth limit reached}
...@@ -31,11 +37,13 @@ logexpect l1 -v v1 -g raw { ...@@ -31,11 +37,13 @@ logexpect l1 -v v1 -g raw {
expect * * VCL_Error {^ESI depth limit reached} expect * * VCL_Error {^ESI depth limit reached}
expect 0 = VCL_Error {^ESI depth limit reached} expect 0 = VCL_Error {^ESI depth limit reached}
#... more #... more
fail clear
} -start } -start
client c1 { client c1 {
txreq -hdr "Host: foo" -hdr "Accept-Encoding: gzip" txreq -hdr "Host: foo" -hdr "Accept-Encoding: gzip"
rxresp rxresp
expect resp.status == 200
} -run } -run
logexpect l1 -wait logexpect l1 -wait
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment