From 804eae174a41f4f5c3ec8fdaa6b40f4fab950460 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 18 Dec 2008 11:48:56 +0000 Subject: [PATCH] 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 --- .../bin/varnishtest/tests/b00027.vtc | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/b00027.vtc 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 -- 2.39.5