r4533 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Thu Feb 4 10:27:38 CET 2010
Author: phk
Date: 2010-02-04 10:27:37 +0100 (Thu, 04 Feb 2010)
New Revision: 4533
Added:
trunk/varnish-cache/bin/varnishtest/tests/r00641.vtc
Log:
Add a testcase which demonstrates bug #641, but does not fail it, yet.
Added: trunk/varnish-cache/bin/varnishtest/tests/r00641.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/r00641.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/r00641.vtc 2010-02-04 09:27:37 UTC (rev 4533)
@@ -0,0 +1,31 @@
+# $Id$
+
+test "Regression test for 524: HTTP/1.0 and ESI"
+
+server s1 {
+ rxreq
+ expect req.url == "/"
+ txresp -proto HTTP/1.0 -body {
+ <esi:remove> </esi:remove>
+ <_esi:include src="/foo"/>
+ <esi:remove> </esi:remove>
+ }
+
+} -start
+
+varnish v1 -vcl+backend {
+ sub vcl_recv {
+ // return (pass);
+ }
+ sub vcl_fetch {
+ esi;
+ }
+} -cliok "param.set sess_timeout 60" -start
+
+client c1 {
+ txreq -proto HTTP/1.1
+ rxresp
+ # XXX this is the problem: expect resp.proto == HTTP/1.1
+ expect resp.status == 200
+ expect resp.bodylen == 39
+} -run
More information about the varnish-commit
mailing list