mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-10 02:31:59 +09:00
d092e4b325
TestRoutesCompatNoPeersBeyondCaptures extends the negative peer assertion from 6 hardcoded files (f10-f15) to all 98 ROUTES golden files using a generic, data-driven approach. For each golden file, the test derives expected peer pairs from capture SrcIPs (subnet routes, direct node IPs) and DstPorts (destination node IPs, route CIDRs), handling IP dash-range format (100.64.0.0-100.115.91.255) and wildcards. It then asserts that no unexpected CanAccess=true pairs exist. Also adds addSrcIPToBuilder helper and deriveAllPeerPairsFromCaptures for comprehensive peer derivation from golden data. Updates #3157 Updates #3169