[master] 6094e3ffb test changing the path of a uds backend
Nils Goroll
nils.goroll at uplex.de
Mon Nov 2 10:02:14 UTC 2020
commit 6094e3ffb855513200a0afd89e1e7e71a1beead3
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Nov 2 10:52:39 2020 +0100
test changing the path of a uds backend
complement the existing c88 test with changing the path of a backend.
diff --git a/bin/varnishtest/tests/c00088.vtc b/bin/varnishtest/tests/c00088.vtc
index d95477eae..1fe0b768e 100644
--- a/bin/varnishtest/tests/c00088.vtc
+++ b/bin/varnishtest/tests/c00088.vtc
@@ -1,4 +1,4 @@
-varnishtest "Dropping polling of a backend that listens at UDS"
+varnishtest "Change UDS backend: change path, drop poll"
server s1 -listen "${tmpdir}/s1.sock" {
non_fatal
@@ -10,6 +10,16 @@ server s1 -listen "${tmpdir}/s1.sock" {
}
} -start
+server s2 -listen "${tmpdir}/s2.sock" {
+ non_fatal
+ timeout 3
+ loop 40 {
+ rxreq
+ txresp
+ accept
+ }
+} -start
+
varnish v1 -vcl {
probe default {
.window = 8;
@@ -18,13 +28,31 @@ varnish v1 -vcl {
.interval = 0.1s;
}
backend s1 {
- .path = "${s1_sock}";
+ .path = "${s2_sock}";
}
} -start
delay 1
-varnish v1 -vcl+backend { } -cliok "vcl.use vcl2" -cliok "vcl.discard vcl1"
+varnish v1 -vcl {
+ probe default {
+ .window = 8;
+ .initial = 7;
+ .threshold = 8;
+ .interval = 0.1s;
+ }
+ backend s1 {
+ .path = "${s1_sock}";
+ }
+} -cliok "vcl.use vcl2" -cliok "vcl.discard vcl1"
+
+delay 1
+
+varnish v1 -vcl {
+ backend s1 {
+ .path = "${s1_sock}";
+ }
+} -cliok "vcl.use vcl3" -cliok "vcl.discard vcl2"
delay 1
More information about the varnish-commit
mailing list