[master] bd70a2039 Test that director with sick backends only is shown as sick
Nils Goroll
nils.goroll at uplex.de
Tue Feb 5 15:11:09 UTC 2019
commit bd70a20395e9df742a5526f255da8d5ad26422cf
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Feb 5 16:10:10 2019 +0100
Test that director with sick backends only is shown as sick
Tests #2887
diff --git a/bin/varnishtest/tests/r02887.vtc b/bin/varnishtest/tests/r02887.vtc
new file mode 100644
index 000000000..52fbf7a81
--- /dev/null
+++ b/bin/varnishtest/tests/r02887.vtc
@@ -0,0 +1,20 @@
+varnishtest "Test that director with sick backends only is shown as sick"
+
+varnish v1 -vcl {
+
+ import directors;
+
+ probe p { .url = "/foo"; }
+ backend b1 { .host = "${bad_backend}"; .probe = p;}
+ backend b2 { .host = "${bad_backend}"; .probe = p;}
+ backend b3 { .host = "${bad_backend}"; .probe = p;}
+
+ sub vcl_init {
+ new foo = directors.random();
+ foo.add_backend(b1, 1);
+ foo.add_backend(b2, 1);
+ foo.add_backend(b3, 1);
+ }
+} -start
+
+varnish v1 -cliexpect "foo.*sick" "backend.list"
More information about the varnish-commit
mailing list