Add support for Job Events
Closes go-playground/webhooks#70, closes go-playground/webhooks#71
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user