r2807 - trunk/varnish-cache/bin/varnishtest/tests

phk at projects.linpro.no phk at projects.linpro.no
Wed Jun 25 17:54:52 CEST 2008


Author: phk
Date: 2008-06-25 17:54:52 +0200 (Wed, 25 Jun 2008)
New Revision: 2807

Added:
   trunk/varnish-cache/bin/varnishtest/tests/r00263.vtc
Log:
Testcase for ticket 263



Added: trunk/varnish-cache/bin/varnishtest/tests/r00263.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/r00263.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/r00263.vtc	2008-06-25 15:54:52 UTC (rev 2807)
@@ -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




More information about the varnish-commit mailing list