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

phk at projects.linpro.no phk at projects.linpro.no
Thu Jun 26 12:36:54 CEST 2008


Author: phk
Date: 2008-06-26 12:36:54 +0200 (Thu, 26 Jun 2008)
New Revision: 2823

Added:
   trunk/varnish-cache/bin/varnishtest/tests/e00002.vtc
Log:
Test ESI CDATA quoting



Added: trunk/varnish-cache/bin/varnishtest/tests/e00002.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00002.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00002.vtc	2008-06-26 10:36:54 UTC (rev 2823)
@@ -0,0 +1,29 @@
+# $Id$
+
+test "ESI CDATA"
+
+
+server s1 {
+	rxreq 
+	txresp -body {
+		<esi:remove>
+		<![CDATA[</esi:remove>]]>
+		This is a test: Unseen University
+		</esi:remove>
+		This is a test: Hello world
+	}
+} -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