]> err.no Git - varnish/commitdiff
Testcase for ticket 263
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 25 Jun 2008 15:54:52 +0000 (15:54 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 25 Jun 2008 15:54:52 +0000 (15:54 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2807 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/r00263.vtc [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishtest/tests/r00263.vtc b/varnish-cache/bin/varnishtest/tests/r00263.vtc
new file mode 100644 (file)
index 0000000..109917c
--- /dev/null
@@ -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