mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-12 10:59:08 +09:00
1e20972db0
The previous tscap regeneration replaced the legacy uppercase
GRANT-V*.hujson files with lowercase via-grant-v*.hujson and switched
the topology nodes to anonymized pokémon identifiers, but
TestViaGrantMapCompat was still loading files by their old IDs and
matching topology entries by their old hostnames, so it could not even
open a single golden file.
- viaCompatTests: GRANT-V29/V30/V31/V36 → via-grant-v29/v30/v31/v36
so the path Join finds the renamed files on disk.
- taggedNodes: rewrite the hardcoded servertest hostname list to the
pokémon names tscap/anonymize writes (big-router→caterpie,
exit-a→pidgey, …) so the topology lookup picks up the matching
entries instead of skipping every node.
- goldenNode: track the tscap schema. Replace advertised_routes →
routable_ips and is_exit_node → approved_routes; the AdvertisedRoutes
field name is kept on the Go side because the rest of the test
code already references it.
- convertViaPolicy: also rewrite the anonymized odin/thor/freya
@example.com emails so the served policy resolves users when the
file came from tscap/anonymize.
Updates #3157