mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-17 14:02:07 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user