Add support for Job Events

Closes go-playground/webhooks#70, closes go-playground/webhooks#71
This commit is contained in:
Daniel Silverman
2019-05-18 21:41:06 -07:00
parent d228b48c40
commit 21587e152e
4 changed files with 79 additions and 0 deletions
+9
View File
@@ -231,6 +231,15 @@ func TestWebhooks(t *testing.T) {
"X-Gitlab-Event": []string{"Build Hook"},
},
},
{
name: "JobEvent",
event: JobEvents,
typ: JobEventPayload{},
filename: "../testdata/gitlab/job-event.json",
headers: http.Header{
"X-Gitlab-Event": []string{"Job Hook"},
},
},
}
for _, tt := range tests {