r2837 - trunk/varnish-cache/bin/varnishtest/tests

phk at projects.linpro.no phk at projects.linpro.no
Thu Jun 26 23:09:32 CEST 2008


Author: phk
Date: 2008-06-26 23:09:32 +0200 (Thu, 26 Jun 2008)
New Revision: 2837

Added:
   trunk/varnish-cache/bin/varnishtest/tests/e00007.vtc
Log:
Testcase for ESI fragmented storage parsing



Added: trunk/varnish-cache/bin/varnishtest/tests/e00007.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00007.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00007.vtc	2008-06-26 21:09:32 UTC (rev 2837)
@@ -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




More information about the varnish-commit mailing list