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

phk at projects.linpro.no phk at projects.linpro.no
Thu Jun 26 12:39:23 CEST 2008


Author: phk
Date: 2008-06-26 12:39:23 +0200 (Thu, 26 Jun 2008)
New Revision: 2824

Added:
   trunk/varnish-cache/bin/varnishtest/tests/e00003.vtc
Log:
ESI:include test case



Added: trunk/varnish-cache/bin/varnishtest/tests/e00003.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00003.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00003.vtc	2008-06-26 10:39:23 UTC (rev 2824)
@@ -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




More information about the varnish-commit mailing list