From: phk Date: Wed, 25 Jun 2008 15:54:52 +0000 (+0000) Subject: Testcase for ticket 263 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec41922d0f3339903bade7d25e628e8167666da;p=varnish Testcase for ticket 263 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2807 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/r00263.vtc b/varnish-cache/bin/varnishtest/tests/r00263.vtc new file mode 100644 index 00000000..109917ce --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/r00263.vtc @@ -0,0 +1,21 @@ +# $Id$ + +test "Test refcounting backends from director" + +varnish v1 -vcl+backend { + backend node1 { .host = "10.0.0.1"; .port = "80"; } + backend node2 { .host = "10.0.0.2"; .port = "80"; } + backend node3 { .host = "10.0.0.3"; .port = "80"; } + + director cluster random { + { .backend = node1; .weight = 1; } + { .backend = node2; .weight = 1; } + { .backend = node3; .weight = 1; } + } + + sub vcl_recv { + set req.backend = cluster; + } +} -start + +varnish v1 -wait