Commit f1949580 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vtc: Simplify r03241 and prune confusing comment

parent cffda50c
varnishtest "ESI include out of workspace" varnishtest "ESI include out of workspace"
server s1 { server s1 {
rxreq rxreq
expect req.http.esi0 == "foo" expect req.http.esi0 == "foo"
txresp -body { txresp -body {before <esi:include src="/body" sr="foo"/> after}
<html>
Before include
<esi:include src="/body" sr="foo"/>
After include
</html>
}
rxreq rxreq
expect req.url == "/body1" expect req.url == "/body1"
expect req.http.esi0 != "foo" expect req.http.esi0 != "foo"
txresp -body { txresp -body "include"
Included file
}
} -start } -start
varnish v1 -cliok "param.set feature +esi_disable_xml_check"
varnish v1 -vcl+backend { varnish v1 -vcl+backend {
import vtc; import vtc;
...@@ -48,9 +40,8 @@ logexpect l1 -v v1 -g raw { ...@@ -48,9 +40,8 @@ logexpect l1 -v v1 -g raw {
client c1 { client c1 {
txreq -hdr "Host: foo" txreq -hdr "Host: foo"
rxresp rxresp
# XXX this is actually wrong (missed include)
expect resp.bodylen == 57
expect resp.status == 200 expect resp.status == 200
expect resp.body == "before after"
} -run } -run
logexpect l1 -wait logexpect l1 -wait
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