integration: add HA ping failover test

Block ping callbacks via iptables while keeping the Noise session alive
to simulate a zombie-connected router. Verify the prober detects it,
fails over, and does not flap on recovery.

Updates #2129
Updates #2902
This commit is contained in:
Kristoffer Dalby
2026-04-15 13:42:10 +00:00
parent 0378e2d2c6
commit af26bab17a
2 changed files with 245 additions and 0 deletions
+7
View File
@@ -273,6 +273,13 @@ func WithTuning(batchTimeout time.Duration, mapSessionChanSize int) Option {
}
}
func WithHAProbing(interval, timeout time.Duration) Option {
return func(hsic *HeadscaleInContainer) {
hsic.env["HEADSCALE_NODE_ROUTES_HA_PROBE_INTERVAL"] = interval.String()
hsic.env["HEADSCALE_NODE_ROUTES_HA_PROBE_TIMEOUT"] = timeout.String()
}
}
func WithTimezone(timezone string) Option {
return func(hsic *HeadscaleInContainer) {
hsic.env["TZ"] = timezone