Commit 6051a45d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a testcase for the random director doing actual work



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2918 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 66bfce79
# $Id$
test "Test random director"
server s1 {
rxreq
txresp -body "foo1"
rxreq
txresp -body "bar1"
} -start
varnish v1 -vcl+backend {
director foo random {
{ .backend = s1; .weight = 1; }
{ .backend = s1; .weight = 1; }
}
sub vcl_recv {
set req.backend = foo;
}
} -start
client c1 {
timeout 10
txreq -url "/foo"
rxresp
txreq -url "/bar"
rxresp
} -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment