Fix failing TestCommitCommentEvent
Due to a slight change in the payload , the ssh for payload changed. This was the reason for failing test case
This commit is contained in:
@@ -181,7 +181,6 @@ func TestBadSignatureMatch(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestCommitCommentEvent(t *testing.T) {
|
func TestCommitCommentEvent(t *testing.T) {
|
||||||
t.Skip()
|
|
||||||
payload := `{
|
payload := `{
|
||||||
"action": "created",
|
"action": "created",
|
||||||
"comment": {
|
"comment": {
|
||||||
@@ -321,7 +320,8 @@ func TestCommitCommentEvent(t *testing.T) {
|
|||||||
"type": "User",
|
"type": "User",
|
||||||
"site_admin": false
|
"site_admin": false
|
||||||
}
|
}
|
||||||
}`
|
}
|
||||||
|
`
|
||||||
|
|
||||||
req, err := http.NewRequest("POST", "http://127.0.0.1:3010/webhooks", bytes.NewBuffer([]byte(payload)))
|
req, err := http.NewRequest("POST", "http://127.0.0.1:3010/webhooks", bytes.NewBuffer([]byte(payload)))
|
||||||
req.Header.Set("Content-Type", "application/json")
|
req.Header.Set("Content-Type", "application/json")
|
||||||
|
|||||||
Reference in New Issue
Block a user