Skip to content

Commit

Permalink
fix/update gitea PR webhook test
Browse files Browse the repository at this point in the history
  • Loading branch information
n9 committed Sep 30, 2023
1 parent 1079d37 commit 737b60d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions applicationset/webhook/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 737b60d

Please sign in to comment.