[experimental-ims] 3dffeb9 Add (disabled) test-case for #977
Geoff Simmons
geoff at varnish-cache.org
Wed Aug 31 16:01:28 CEST 2011
commit 3dffeb9e491d2811667af29931dbb43b71292fc0
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