Also test ESI onerror with max_esi_depth reached

With onerror=abort, the request is aborted as with a bad return code.

With onerror=continue, the include remains empty

This already behaved like I expected it to, this vtc merely adds
an explicit test.
parent 8289ea01
......@@ -38,6 +38,20 @@ client c1 {
expect resp.body == "before "
} -run
varnish v1 -cliok "param.set max_esi_depth 0"
client c1 {
txreq -url "/abort"
non_fatal
rxresphdrs
expect resp.status == 200
rxchunk
expect_close
expect resp.body == "before "
} -run
varnish v1 -cliok "param.set max_esi_depth 1"
varnish v1 -vsl_catchup
server s1 -wait
......@@ -55,3 +69,12 @@ client c1 {
rxresp
expect resp.body == "before FOOBAR after"
} -run
varnish v1 -cliok "param.set max_esi_depth 0"
client c1 {
fatal
txreq -url "/continue"
rxresp
expect resp.body == "before after"
} -run
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