r3665 - branches/2.0/varnish-cache/bin/varnishtest/tests
tfheen at projects.linpro.no
tfheen at projects.linpro.no
Fri Feb 6 14:17:49 CET 2009
Author: tfheen
Date: 2009-02-06 14:17:49 +0100 (Fri, 06 Feb 2009)
New Revision: 3665
Added:
branches/2.0/varnish-cache/bin/varnishtest/tests/b00027.vtc
Log:
Merge r3472: Add test for two corner cases in backend body determination.
Copied: branches/2.0/varnish-cache/bin/varnishtest/tests/b00027.vtc (from rev 3472, trunk/varnish-cache/bin/varnishtest/tests/b00027.vtc)
===================================================================
--- branches/2.0/varnish-cache/bin/varnishtest/tests/b00027.vtc (rev 0)
+++ branches/2.0/varnish-cache/bin/varnishtest/tests/b00027.vtc 2009-02-06 13:17:49 UTC (rev 3665)
@@ -0,0 +1,28 @@
+# $Id$
+
+test "test backend transmission corner cases"
+
+server s1 {
+ rxreq
+ txresp
+ rxreq
+ txresp -proto HTTP/1.0 -hdr "Connection: keep-alive"
+ rxreq
+ txresp -hdr "Transfer-encoding: foobar"
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+client c1 {
+ txreq -url /foo
+ rxresp
+ expect resp.status == 200
+ expect resp.bodylen == 0
+ txreq -url /bar
+ rxresp
+ expect resp.status == 200
+ expect resp.bodylen == 0
+ txreq -url /barf
+ rxresp
+ expect resp.status == 503
+} -run
More information about the varnish-commit
mailing list