r3745 - branches/2.0/varnish-cache/bin/varnishtest/tests

tfheen at projects.linpro.no tfheen at projects.linpro.no
Wed Feb 11 09:13:11 CET 2009


Author: tfheen
Date: 2009-02-11 09:13:11 +0100 (Wed, 11 Feb 2009)
New Revision: 3745

Added:
   branches/2.0/varnish-cache/bin/varnishtest/tests/r00433.vcl
Log:
Merge r3576: Regression testcase for #433



Copied: branches/2.0/varnish-cache/bin/varnishtest/tests/r00433.vcl (from rev 3576, trunk/varnish-cache/bin/varnishtest/tests/r00433.vcl)
===================================================================
--- branches/2.0/varnish-cache/bin/varnishtest/tests/r00433.vcl	                        (rev 0)
+++ branches/2.0/varnish-cache/bin/varnishtest/tests/r00433.vcl	2009-02-11 08:13:11 UTC (rev 3745)
@@ -0,0 +1,48 @@
+# $Id$
+
+test "noidx"
+
+server s1 {
+	rxreq
+	expect req.url == "/foo"
+	txresp -hdr "Connection: close"
+	send {
+<H>
+FOO{
+<esi:include src="/bar"/>
+}FOO
+<!-- blablablabablablablablablablablablabla >
+blablablablab -->
+The end.
+}
+
+} -start
+
+server s2 -listen 127.0.0.1:9082 {
+	rxreq
+	expect req.url == "/bar"
+	txresp -body "bar"
+} -start
+
+varnish v1 -vcl+backend {
+	sub vcl_recv {
+		if (req.url == "/foo") {
+			set req.backend = s1;
+		} else {
+			set req.backend = s2;
+		}
+	}
+
+	sub vcl_fetch {
+		esi;
+	}
+} -start
+
+varnish v1 -cliok "param.set esi_syntax 4"
+varnish v1 -cliok "param.set diag_bitmap 0x10000"
+varnish v1 -cliok "debug.fragfetch 32"
+
+client c1 {
+	txreq -url /foo
+	rxresp
+} -run



More information about the varnish-commit mailing list