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

phk at projects.linpro.no phk at projects.linpro.no
Thu Dec 18 12:48:56 CET 2008


Author: phk
Date: 2008-12-18 12:48:56 +0100 (Thu, 18 Dec 2008)
New Revision: 3472

Added:
   trunk/varnish-cache/bin/varnishtest/tests/b00027.vtc
Log:
Add test for two corner cases in backend body determination.



Added: trunk/varnish-cache/bin/varnishtest/tests/b00027.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/b00027.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/b00027.vtc	2008-12-18 11:48:56 UTC (rev 3472)
@@ -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