mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-23 00:58:43 +02:00
integration: add tests for ACL group with deleted/unknown users
Add DeleteUser method to ControlServer interface and implement it in HeadscaleInContainer to enable testing user deletion scenarios. Add two integration tests for issue #2967: - TestACLGroupWithUnknownUser: tests that valid users can communicate when a group references a non-existent user - TestACLGroupAfterUserDeletion: tests connectivity after deleting a user that was referenced in an ACL group These tests currently pass but don't fully reproduce the reported issue where deleted users break connectivity for the entire group. Updates #2967
This commit is contained in:
@@ -34,6 +34,7 @@ type ControlServer interface {
|
||||
NodesByName() (map[string]*v1.Node, error)
|
||||
ListUsers() ([]*v1.User, error)
|
||||
MapUsers() (map[string]*v1.User, error)
|
||||
DeleteUser(userID uint64) error
|
||||
ApproveRoutes(uint64, []netip.Prefix) (*v1.Node, error)
|
||||
SetNodeTags(nodeID uint64, tags []string) error
|
||||
GetCert() []byte
|
||||
|
||||
Reference in New Issue
Block a user