mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-16 05:22:04 +09:00
4005a097e9
tscap uses clean-slate mode: each scenario wipes every device from the tailnet before logging new ones in, so node IPs change from scenario to scenario. The previous compat tests built a single nodes slice from the first file's topology (or from a hardcoded setup) and used it for every scenario, which produced IP mismatches in the filter rule comparisons. Rebuild types.Nodes per scenario from the current file's Topology. ACL already had a build-from-topology helper; extract the equivalent for grants (buildGrantsNodesFromCapture) and use it for SSH too. Drop the "first 8 nodes only" shim in grants. Pass count jumped ~2500 tests across the four compat suites. Updates #3157 Updates #3169