headscale/hscontrol/policy/v2/testdata
Kristoffer Dalby 64d13f77e8 types/config, types/node: model default-auto-update from auto_update.enabled
Tailscale stamps tailcfg.NodeAttrDefaultAutoUpdate on every node's
CapMap with a JSON bool reflecting the tailnet-wide auto-update
default. Headscale grows an auto_update.enabled config option and
emits the cap accordingly from TailNode -- the cap leaves the
unmodelledTailnetStateCaps strip list and is compared in full by the
nodeAttrs compat suite.

testNodeAttrsSuccess drives cfg.AutoUpdate.Enabled from
tf.Input.Tailnet.Settings.DevicesAutoUpdatesOn so each capture's
expected emission matches the SaaS state it was taken under. Two
captures cover both branches:

  - nodeattrs-tailnet-devices-auto-updates-on  -> [true]
  - nodeattrs-tailnet-devices-auto-updates-off -> [false]

The Tailscale v2 TailnetSettings API does not expose the Send Files
toggle, so the compat suite cannot vary cfg.Taildrop.Enabled per
capture. TestTaildropDisabledWithholdsFileSharingCap covers the off
path directly in servertest.
2026-05-13 14:22:30 +02:00
..
acl_results testdata: add SaaS captures for compat tests 2026-04-17 16:31:49 +01:00
grant_results testdata: add SaaS captures for compat tests 2026-04-17 16:31:49 +01:00
issue_3212 policy/v2: SaaS-derived compat tests for nodeAttrs 2026-05-13 14:22:30 +02:00
nodeattrs_results types/config, types/node: model default-auto-update from auto_update.enabled 2026-05-13 14:22:30 +02:00
policytest_results policy/v2: add policytester captures recorded from Tailscale SaaS 2026-05-12 11:54:54 +01:00
routes_results policy/v2: SaaS-derived compat tests for nodeAttrs 2026-05-13 14:22:30 +02:00
ssh_results testdata: drop unused uppercase SSH-*.hujson fixtures 2026-05-05 11:59:01 +01:00