mirror of
https://github.com/juanfont/headscale.git
synced 2026-02-16 12:47:44 +01:00
Add TestTagsIssue2978ReproTagReplacement that specifically tests the scenario from issue #2978: - Register node with tag:foo via web auth with --advertise-tags - Admin changes tag to tag:bar via SetNodeTags - Verify client's self view updates (not just server-side) The test performs multiple tag replacements with timing checks to verify whether tag updates propagate to the node's self view after the first call (fixed behavior) or only after a redundant second call (bug behavior). Add helper functions for test validation: - assertNodeSelfHasTagsWithCollect: validates client's status.Self.Tags - assertNetmapSelfHasTagsWithCollect: validates client's netmap.SelfNode.Tags Updates #2978