headscale/hscontrol/policy/v2
Kristoffer Dalby 30dce30a9d testdata: convert .json to .hujson with header comments
Rename all 594 test data files from .json to .hujson and add
descriptive header comments to each file documenting what policy
rules are under test and what outcome is expected.

Update test loaders in all 5 _test.go files to parse HuJSON via
hujson.Parse/Standardize/Pack before json.Unmarshal.

Add cross-dependency warning to via_compat_test.go documenting
that GRANT-V29/V30/V31/V36 are shared with TestGrantsCompat.

Add .gitignore exemption for testdata HuJSON files.
2026-04-01 14:10:42 +01:00
..
testdata testdata: convert .json to .hujson with header comments 2026-04-01 14:10:42 +01:00
filter.go policy/v2: add via exit steering golden captures and tests 2026-04-01 14:10:42 +01:00
filter_test.go policy/v2: add via exit steering golden captures and tests 2026-04-01 14:10:42 +01:00
main_test.go all: fix test flakiness and improve test infrastructure 2026-03-14 02:52:28 -07:00
policy.go policy/v2: fix via grants in BuildPeerMap, MatchersForNode, and ViaRoutesForPeer 2026-04-01 14:10:42 +01:00
policy_test.go integration: remove exit node via grant tests 2026-04-01 14:10:42 +01:00
tailscale_acl_data_compat_test.go testdata: convert .json to .hujson with header comments 2026-04-01 14:10:42 +01:00
tailscale_grants_compat_test.go testdata: convert .json to .hujson with header comments 2026-04-01 14:10:42 +01:00
tailscale_routes_data_compat_test.go testdata: convert .json to .hujson with header comments 2026-04-01 14:10:42 +01:00
tailscale_ssh_data_compat_test.go testdata: convert .json to .hujson with header comments 2026-04-01 14:10:42 +01:00
types.go policy/v2: clean up dead error variables, stale TODO, and test skip reasons 2026-04-01 14:10:42 +01:00
types_test.go policy/v2: implement autogroup:danger-all support 2026-04-01 14:10:42 +01:00
utils.go policy/v2: exclude exit routes from ReduceFilterRules 2026-04-01 14:10:42 +01:00
utils_test.go policy/v2: exclude exit routes from ReduceFilterRules 2026-04-01 14:10:42 +01:00