diff --git a/applicationset/webhook/webhook_test.go b/applicationset/webhook/webhook_test.go index f5e1dc6bcb035..f43ab659681ad 100644 --- a/applicationset/webhook/webhook_test.go +++ b/applicationset/webhook/webhook_test.go @@ -129,20 +129,20 @@ func TestWebhookHandler(t *testing.T) { expectedRefresh: false, }, { - desc: "WebHook from a Gitea repository via pull_reqeuest opened event", + desc: "WebHook from a Gitea repository via pull_request opened event", headerKey: "X-GitHub-Event", headerValue: "pull_request", payloadFile: "gitea-pull-request-opened-event.json", - effectedAppSets: []string{"pull-request-gitea"}, + effectedAppSets: []string{"pull-request-gitea", "plugin", "matrix-pull-request-github-plugin"}, expectedStatusCode: http.StatusOK, expectedRefresh: true, }, { - desc: "WebHook from a Gitea repository via pull_reqeuest assigned event", + desc: "WebHook from a Gitea repository via pull_request assigned event", headerKey: "X-GitHub-Event", headerValue: "pull_request", payloadFile: "gitea-pull-request-assigned-event.json", - effectedAppSets: []string{"pull-request-gitea"}, + effectedAppSets: []string{"pull-request-gitea", "plugin"}, expectedStatusCode: http.StatusOK, expectedRefresh: false, },