doc: Allow "test" for unittests, integration tests, etc

This commit is contained in:
jamesread 2022-10-19 10:02:41 +01:00
parent cfde9e5148
commit fadc616a67
2 changed files with 14 additions and 0 deletions

View File

@ -11,6 +11,7 @@ print("Commit message is: " + commitmsg)
ALLOWED_COMMIT_TYPES = [
"cicd",
"test",
"refactor",
"depbump",
"typo",

View File

@ -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")
}