mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-16 21:42:02 +09:00
routes: add property test for PrimaryRoutes algorithm
Generate randomised sequences of ConnectAdvertise, Disconnect, ProbeUnhealthy, ProbeHealthy and ApprovedRoutesChange operations with rapid and check the per-prefix primary chosen by the implementation matches a reference model after every step. Used to broaden the search for #3203 beyond hand-enumerated disconnect/reconnect sequences. Algorithm passes 5000 checks; kept as a safety net for future changes to primary route selection. Updates #3203
This commit is contained in: