r2831 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jun 26 13:49:59 CEST 2008
Author: phk
Date: 2008-06-26 13:49:58 +0200 (Thu, 26 Jun 2008)
New Revision: 2831
Added:
trunk/varnish-cache/bin/varnishtest/tests/e00005.vtc
Log:
ESI include with relative src
Added: trunk/varnish-cache/bin/varnishtest/tests/e00005.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00005.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00005.vtc 2008-06-26 11:49:58 UTC (rev 2831)
@@ -0,0 +1,33 @@
+# $Id$
+
+test "ESI relative include"
+
+
+server s1 {
+ rxreq
+ expect req.url == "/foo/bar"
+ txresp -body {
+ Before include
+ <!--esi <esi:include src="body"> -->
+ After include
+ }
+ rxreq
+ expect req.url == "/foo/body"
+ txresp -body {
+ Included file
+ }
+} -start
+
+varnish v1 -vcl+backend {
+ sub vcl_fetch {
+ esi;
+ }
+} -start
+
+client c1 {
+ txreq -url /foo/bar
+ rxresp
+ expect resp.status == 200
+}
+
+client c1 -run
More information about the varnish-commit
mailing list