diff --git a/.githooks/commit-msg b/.githooks/commit-msg index 3b9239d..d4e5c43 100755 --- a/.githooks/commit-msg +++ b/.githooks/commit-msg @@ -11,6 +11,7 @@ print("Commit message is: " + commitmsg) ALLOWED_COMMIT_TYPES = [ "cicd", + "test", "refactor", "depbump", "typo", diff --git a/internal/config/config_helpers_test.go b/internal/config/config_helpers_test.go index 698032b..3c67219 100644 --- a/internal/config/config_helpers_test.go +++ b/internal/config/config_helpers_test.go @@ -31,3 +31,16 @@ func TestFindAction(t *testing.T) { assert.Nil(t, c.FindAction("waffles"), "Find non-existent action") } + +func TestFindAcl(t *testing.T) { + c := DefaultConfig() + + acl1 := AccessControlList{ + Name: "Testing ACL", + } + + c.AccessControlLists = append(c.AccessControlLists, acl1) + + assert.NotNil(t, c.FindAcl("Testing ACL"), "Find a ACL that should exist") + assert.Nil(t, c.FindAcl("Chocolate Cake"), "Find a ACL that does not exist") +}