mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-18 00:45:06 +00: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:
parent
2e180d2587
commit
07a4b1b1fd
2 changed files with 270 additions and 0 deletions
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue