Updated test with new changes.

This commit is contained in:
Sumit Madan
2022-03-08 10:55:28 +05:30
parent f22656b35f
commit c4e51bc4db
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -240,7 +240,7 @@ func TestWebhooks(t *testing.T) {
filename: "../testdata/github/installation.json", filename: "../testdata/github/installation.json",
headers: http.Header{ headers: http.Header{
"X-Github-Event": []string{"installation"}, "X-Github-Event": []string{"installation"},
"X-Hub-Signature": []string{"sha1=2058cf6cc28570710afbc638e669f5c67305a2db"}, "X-Hub-Signature": []string{"sha1=2bcb4ad96133ce2dd6d140fad7a80a2b14407f7f"},
}, },
}, },
{ {
@@ -250,7 +250,7 @@ func TestWebhooks(t *testing.T) {
filename: "../testdata/github/installation-repositories.json", filename: "../testdata/github/installation-repositories.json",
headers: http.Header{ headers: http.Header{
"X-Github-Event": []string{"installation_repositories"}, "X-Github-Event": []string{"installation_repositories"},
"X-Hub-Signature": []string{"sha1=c587fbd9dd169db8ae592b3bcc80b08e2e6f4f45"}, "X-Hub-Signature": []string{"sha1=997680ef1e6f4a6b6595f5fa70b82989f505137f"},
}, },
}, },
{ {
+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
@@ -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"
}, },
"repositories": [ "repositories": [