r4424 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Wed Jan 6 16:51:06 CET 2010
Author: phk
Date: 2010-01-06 16:51:05 +0100 (Wed, 06 Jan 2010)
New Revision: 4424
Added:
trunk/varnish-cache/bin/varnishtest/tests/r00612.vtc
Log:
Add testcase for #612.
Fixes: #612
Added: trunk/varnish-cache/bin/varnishtest/tests/r00612.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/r00612.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/r00612.vtc 2010-01-06 15:51:05 UTC (rev 4424)
@@ -0,0 +1,49 @@
+# $Id$
+
+test "Url workspace gets overwritten/reused"
+
+server s1 {
+ rxreq
+ expect req.url == "/"
+ txresp -body {
+ <esi:include src="1"/>
+ <esi:include src="2"/>
+ <esi:include src="3"/>
+ <esi:include src="4"/>
+ <esi:include src="5"/>
+ }
+
+ rxreq
+ expect req.url == "/1"
+ txresp -body "11111"
+
+ rxreq
+ expect req.url == "/2"
+ txresp -body "22222"
+
+ rxreq
+ expect req.url == "/3"
+ txresp -body "33333"
+
+ rxreq
+ expect req.url == "/4"
+ txresp -body "44444"
+
+ rxreq
+ expect req.url == "/5"
+ txresp -body "55555"
+} -start
+
+varnish v1 -vcl+backend {
+ sub vcl_recv {
+ return (pass);
+ }
+ sub vcl_fetch {
+ esi;
+ }
+} -start
+
+client c1 {
+ txreq
+ rxresp
+} -run
More information about the varnish-commit
mailing list