From: phk Date: Thu, 26 Jun 2008 10:39:23 +0000 (+0000) Subject: ESI:include test case X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=279a51d674e0631e3bddf546b52bef1be1043db2;p=varnish ESI:include test case git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2824 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/e00003.vtc b/varnish-cache/bin/varnishtest/tests/e00003.vtc new file mode 100644 index 00000000..721919a4 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/e00003.vtc @@ -0,0 +1,32 @@ +# $Id$ + +test "ESI include" + + +server s1 { + rxreq + txresp -body { + Before include + + After include + } + rxreq + expect req.url == "/body" + txresp -body { + Included file + } +} -start + +varnish v1 -vcl+backend { + sub vcl_fetch { + esi; + } +} -start + +client c1 { + txreq + rxresp + expect resp.status == 200 +} + +client c1 -run