From 839879702465fa8fbd345ecc2049b95f9af0c14c Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Wed, 18 Dec 2024 09:39:30 +0100 Subject: [PATCH] add tag test with groups Signed-off-by: Kristoffer Dalby --- integration/cli_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/integration/cli_test.go b/integration/cli_test.go index 8dac3c5d..7a936a15 100644 --- a/integration/cli_test.go +++ b/integration/cli_test.go @@ -945,6 +945,25 @@ func TestNodeAdvertiseTagCommand(t *testing.T) { }, wantTag: true, }, + { + name: "with-policy-groups", + policy: &policy.ACLPolicy{ + Groups: policy.Groups{ + "group:admins": []string{"user1"}, + }, + ACLs: []policy.ACL{ + { + Action: "accept", + Sources: []string{"*"}, + Destinations: []string{"*:*"}, + }, + }, + TagOwners: map[string][]string{ + "tag:test": {"group:admins"}, + }, + }, + wantTag: true, + }, } for _, tt := range tests {