]> err.no Git - varnish/commitdiff
ESI:include test case
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 10:39:23 +0000 (10:39 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 10:39:23 +0000 (10:39 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2824 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/e00003.vtc [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishtest/tests/e00003.vtc b/varnish-cache/bin/varnishtest/tests/e00003.vtc
new file mode 100644 (file)
index 0000000..721919a
--- /dev/null
@@ -0,0 +1,32 @@
+# $Id$
+
+test "ESI include"
+
+
+server s1 {
+       rxreq 
+       txresp -body {
+               Before include
+               <esi:include src="/body">
+               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