From: phk Date: Thu, 18 Dec 2008 11:48:56 +0000 (+0000) Subject: Add test for two corner cases in backend body determination. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=804eae174a41f4f5c3ec8fdaa6b40f4fab950460;p=varnish Add test for two corner cases in backend body determination. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3472 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/b00027.vtc b/varnish-cache/bin/varnishtest/tests/b00027.vtc new file mode 100644 index 00000000..6451d0b9 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/b00027.vtc @@ -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