aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddytest
diff options
context:
space:
mode:
authorSam Ottenhoff <[email protected]>2024-03-20 13:13:35 -0400
committerGitHub <[email protected]>2024-03-20 11:13:35 -0600
commite65b97f55b6c5da8859fbd5e5b397cf089bf7716 (patch)
treea0162fd3d16a02077047deb05642168363303d69 /caddytest
parenta9768d2fdefeae8050f1d328e7133e312acd253f (diff)
downloadcaddy-e65b97f55b6c5da8859fbd5e5b397cf089bf7716.tar.gz
caddy-e65b97f55b6c5da8859fbd5e5b397cf089bf7716.zip
reverseproxy: configurable active health_passes and health_fails (#6154)
* reverseproxy: active health check allows configurable health_passes and health_fails * Need to reset counters after recovery * rename methods to be more clear that these are coming from active health checks * do not export methods
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/reverseproxy_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/caddytest/integration/reverseproxy_test.go b/caddytest/integration/reverseproxy_test.go
index 0beb71afc..cbfe8433b 100644
--- a/caddytest/integration/reverseproxy_test.go
+++ b/caddytest/integration/reverseproxy_test.go
@@ -350,6 +350,8 @@ func TestReverseProxyHealthCheck(t *testing.T) {
health_port 2021
health_interval 10ms
health_timeout 100ms
+ health_passes 1
+ health_fails 1
}
}
`, "caddyfile")