From: phk Date: Thu, 26 Jun 2008 11:24:25 +0000 (+0000) Subject: A testcase for the simple_list hasher X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c26bd5e1b8c139ad8cd54e72397ecaf1231eaed;p=varnish A testcase for the simple_list hasher git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2828 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/b00010.vtc b/varnish-cache/bin/varnishtest/tests/b00010.vtc new file mode 100644 index 00000000..3da8c7e9 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/b00010.vtc @@ -0,0 +1,28 @@ +# $Id$ + +test "Check simple list hasher" + +varnish v1 -arg "-h simple_list -b 127.0.0.1:9080" -start + +server s1 { + rxreq + txresp -hdr "Connection: close" -body "012345\n" +} + +server s1 -start + +client c1 { + txreq -url "/" + rxresp + expect resp.status == 200 + txreq -url "/" + rxresp + expect resp.status == 200 + expect resp.http.x-varnish == "1002 1001" +} + +client c1 -run + +server s1 -wait + +varnish v1 -stop