headscale/hscontrol/policy/v2
Kristoffer Dalby 835db974b5 testdata: strip unused fields from all test data files (23MB -> 4MB)
Strip fields not consumed by any test from all 594 HuJSON test data files:

grant_results/ (248 files, 21MB -> 1.8MB):
  - Remove: timestamp, propagation_wait_seconds, input.policy_file,
    input.grants_section, input.api_endpoint, input.api_method,
    topology.nodes.mts_name, topology.nodes.socket, topology.nodes.user_id,
    captures.commands, captures.packet_filter_matches, captures.whois
  - V14-V16, V26-V36: keep stripped netmap (Peers.Name/AllowedIPs/PrimaryRoutes
    + PacketFilterRules) for via_compat_test.go compatibility
  - V17-V25: strip netmap (old topology, incompatible with via_compat harness)

acl_results/ (215 files, 1.4MB -> 1.2MB):
  - Remove: timestamp, propagation_wait_seconds, input.policy_file,
    input.api_endpoint, input.api_response_code, entire topology section
    (parsed by Go struct but completely ignored — nodes are hardcoded)

routes_results/ (92 files, unchanged — topology is actively used):
  - Remove: timestamp, propagation_wait_seconds, input.policy_file,
    input.api_endpoint, input.api_response_code

ssh_results/ (39 files, unchanged — minimal to begin with):
  - Remove: policy_file
2026-04-01 14:10:42 +01:00
..
testdata testdata: strip unused fields from all test data files (23MB -> 4MB) 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