Adding functionality to get & delete incoming webhooks (#5648)

Этот коммит содержится в:
Poornima
2017-03-12 04:10:56 +05:30
коммит произвёл enahum
родитель 11f1859de1
Коммит 482a0fb5fc
8 изменённых файлов: 269 добавлений и 0 удалений

Просмотреть файл

@@ -441,6 +441,14 @@ func CheckNotImplementedStatus(t *testing.T, resp *model.Response) {
}
}
func CheckOKStatus(t *testing.T, resp *model.Response) {
CheckNoError(t, resp)
if resp.StatusCode != http.StatusOK {
t.Fatalf("wrong status code. expected %d got %d", http.StatusOK, resp.StatusCode)
}
}
func CheckErrorMessage(t *testing.T, resp *model.Response, errorId string) {
if resp.Error == nil {
debug.PrintStack()