mirror of
https://github.com/juanfont/headscale.git
synced 2026-02-21 20:20:31 +09:00
integration/tags: add dedicated issue #2978 reproduction test
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
This commit is contained in:
1
.github/workflows/test-integration.yaml
vendored
1
.github/workflows/test-integration.yaml
vendored
@@ -237,6 +237,7 @@ jobs:
|
||||
- TestTagsAdminAPICannotSetNonExistentTag
|
||||
- TestTagsAdminAPICanSetUnownedTag
|
||||
- TestTagsAdminAPICannotRemoveAllTags
|
||||
- TestTagsIssue2978ReproTagReplacement
|
||||
- TestTagsAdminAPICannotSetInvalidFormat
|
||||
- TestTagsUserLoginReauthWithEmptyTagsRemovesAllTags
|
||||
uses: ./.github/workflows/integration-test-template.yml
|
||||
|
||||
Reference in New Issue
Block a user