]> err.no Git - varnish/commitdiff
Testcase for ESI fragmented storage parsing
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 21:09:32 +0000 (21:09 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 21:09:32 +0000 (21:09 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2837 d4fa192b-c00b-0410-8231-f00ffab90ce4

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

diff --git a/varnish-cache/bin/varnishtest/tests/e00007.vtc b/varnish-cache/bin/varnishtest/tests/e00007.vtc
new file mode 100644 (file)
index 0000000..332dcf3
--- /dev/null
@@ -0,0 +1,32 @@
+# $Id$
+
+test "ESI spanning storage bits"
+
+
+server s1 {
+       rxreq 
+       expect req.url == "/foo/bar"
+       txresp -hdr "Connection: close"
+       send {
+               This is before the test
+               <![CDATA[fooooooobar]]>
+               <esi:remove>
+               This is a test: Unseen University
+               </esi:remove>
+               This is a test: Hello world
+       }
+} -start
+
+varnish v1 -vcl+backend {
+       sub vcl_fetch {
+               esi;
+       }
+} -start -cli "debug.fragfetch 32"
+
+client c1 {
+       txreq -url /foo/bar -hdr "Host: froboz"
+       rxresp
+       expect resp.status == 200
+}
+
+client c1 -run