r2922 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jul 10 22:08:57 CEST 2008
Author: phk
Date: 2008-07-10 22:08:57 +0200 (Thu, 10 Jul 2008)
New Revision: 2922
Added:
trunk/varnish-cache/bin/varnishtest/tests/e00008.vtc
Log:
Test XML/ESI syntax errors etc.
Added: trunk/varnish-cache/bin/varnishtest/tests/e00008.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00008.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00008.vtc 2008-07-10 20:08:57 UTC (rev 2922)
@@ -0,0 +1,33 @@
+# $Id: e00004.vtc 2906 2008-07-08 10:29:07Z phk $
+
+test "ESI parsing errors"
+
+server s1 {
+ rxreq
+ txresp -body {
+ Before include
+ <!--esi <esi:include src="/body"/> -->
+ After include
+ <!-- normal comment -->
+ <esi:bogosity/>
+ }
+ 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