From 22c7c83b2adbb3d82b6c36dadbeee8e453b8f6af Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 17 Jun 2008 10:20:29 +0000 Subject: [PATCH] Add a trivial pipe test git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2729 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/b00001.vtc | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/b00001.vtc diff --git a/varnish-cache/bin/varnishtest/tests/b00001.vtc b/varnish-cache/bin/varnishtest/tests/b00001.vtc new file mode 100644 index 00000000..971820f1 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/b00001.vtc @@ -0,0 +1,26 @@ +# $Id$ + +test "Check that a pipe transaction works" + +server s1 -repeat 1 { + rxreq + txresp \ + -hdr "Connection: close" \ + -body "012345\n" +} + +varnish v1 -vcl+backend { + sub vcl_recv { + pipe; + } +} -start + +server s1 -start + +client c1 { + txreq -url "/" + rxresp + expect resp.status == 200 +} + +client c1 -run -- 2.39.5