r2828 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jun 26 13:24:25 CEST 2008
Author: phk
Date: 2008-06-26 13:24:25 +0200 (Thu, 26 Jun 2008)
New Revision: 2828
Added:
trunk/varnish-cache/bin/varnishtest/tests/b00010.vtc
Log:
A testcase for the simple_list hasher
Added: trunk/varnish-cache/bin/varnishtest/tests/b00010.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/b00010.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/b00010.vtc 2008-06-26 11:24:25 UTC (rev 2828)
@@ -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
More information about the varnish-commit
mailing list