From 3ec41922d0f3339903bade7d25e628e8167666da Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 25 Jun 2008 15:54:52 +0000 Subject: [PATCH] Testcase for ticket 263 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2807 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/r00263.vtc | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/r00263.vtc 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 -- 2.39.5