[3.0] 4784fe9 Add (disabled) test-case for #977

Tollef Fog Heen tfheen at varnish-cache.org
Wed Aug 17 11:28:48 CEST 2011


commit 4784fe95e0639abe9a393711fd2bcf7dd515e152
Author: Kristian Lyngstol <kristian at bohemians.org>
Date:   Mon Aug 15 13:59:58 2011 +0200

    Add (disabled) test-case for #977

diff --git a/bin/varnishtest/tests.disabled/r00977.vtc b/bin/varnishtest/tests.disabled/r00977.vtc
new file mode 100644
index 0000000..e6c61da
--- /dev/null
+++ b/bin/varnishtest/tests.disabled/r00977.vtc
@@ -0,0 +1,28 @@
+
+varnishtest "Test proper fallbacks of client director"
+
+server s1 -repeat 1 {
+	rxreq
+	txresp -status 200
+} -start
+
+varnish v1 -vcl+backend {
+	director foo client{
+		.retries = 5;
+		{ .backend = { .host = "${bad_ip}"; .port = "9090"; } .weight = 1; }
+		{ .backend = s1; .weight = 1;}
+	}
+	sub vcl_recv {
+		set req.backend = foo;
+		set client.identity = "44.452";
+		return (pass);
+	}
+} -start
+
+client c1 {
+	txreq
+	rxresp
+	expect resp.status == 200
+} -run
+
+varnish v1 -expect backend_fail == 1



More information about the varnish-commit mailing list