Fixed test for integration installation events.

This commit is contained in:
Sumit Madan
2022-03-08 11:04:06 +05:30
parent c4e51bc4db
commit b793bbfed1
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ func TestWebhooks(t *testing.T) {
filename: "../testdata/github/integration-installation.json", filename: "../testdata/github/integration-installation.json",
headers: http.Header{ headers: http.Header{
"X-Github-Event": []string{"integration_installation"}, "X-Github-Event": []string{"integration_installation"},
"X-Hub-Signature": []string{"sha1=bb2769f05f1a11af3a1edf8f9fac11bae7402a1e"}, "X-Hub-Signature": []string{"sha1=1172601d35bdebac5f3aa7618c9e58eafb404c6f"},
}, },
}, },
{ {
@@ -270,7 +270,7 @@ func TestWebhooks(t *testing.T) {
filename: "../testdata/github/integration-installation-repositories.json", filename: "../testdata/github/integration-installation-repositories.json",
headers: http.Header{ headers: http.Header{
"X-Github-Event": []string{"integration_installation_repositories"}, "X-Github-Event": []string{"integration_installation_repositories"},
"X-Hub-Signature": []string{"sha1=2f00a982574188342c2894eb9d1b1e93434687fb"}, "X-Hub-Signature": []string{"sha1=7c38ba703a3c89d00823920a47cd8863df8121d2"},
}, },
}, },
{ {
+2 -2
View File
@@ -38,8 +38,8 @@
"push", "push",
"pull_request" "pull_request"
], ],
"created_at": 1525109898, "created_at": "2022-03-02T18:02:51.000Z",
"updated_at": 1525109899, "updated_at": "2022-03-02T18:02:51.000Z",
"single_file_name": "config.yml" "single_file_name": "config.yml"
}, },
"repository_selection": "selected", "repository_selection": "selected",
+2 -2
View File
@@ -37,8 +37,8 @@
"events": [ "events": [
"pull_request" "pull_request"
], ],
"created_at": 1516025475, "created_at": "2022-03-02T18:02:51.000Z",
"updated_at": 1516025475, "updated_at": "2022-03-02T18:02:51.000Z",
"single_file_name": null "single_file_name": null
}, },
"repositories": [ "repositories": [