[experimental-ims] 3814b12 Use admin health to control test-state

Poul-Henning Kamp phk at FreeBSD.org
Thu Dec 18 10:27:46 CET 2014


commit 3814b12840885117f3b2f78de7f5bc25f99fd405
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu May 10 09:09:49 2012 +0000

    Use admin health to control test-state

diff --git a/bin/varnishtest/tests/r00306.vtc b/bin/varnishtest/tests/r00306.vtc
index ebc1774..079e994 100644
--- a/bin/varnishtest/tests/r00306.vtc
+++ b/bin/varnishtest/tests/r00306.vtc
@@ -23,10 +23,6 @@ varnish v1 -vcl {
 	}
 	backend s2 {
 		.host = "${s2_addr}"; .port = "${s2_port}";
-		.probe = {
-			.url = "/";
-			.initial = 0;
-		}
 	}
 	director foo random {
 		{ .backend = s2; .weight = 1; }
@@ -38,6 +34,9 @@ varnish v1 -vcl {
 	}
 } -start
 
+varnish v1 -cliok "backend.set_health s2 sick"
+varnish v1 -cliok "backend.list"
+
 client c1 {
 	timeout 10
 



More information about the varnish-commit mailing list