[PLT-8438] Include incoming webhook display name in post props (#7997)

Этот коммит содержится в:
Carlos Tadeu Panato Junior
2017-12-22 16:20:18 +01:00
коммит произвёл Joram Wilander
родитель 1aac5a9c97
Коммит d9b8c4db76
2 изменённых файлов: 21 добавлений и 13 удалений

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

@@ -33,13 +33,15 @@ func TestCreateWebhookPost(t *testing.T) {
Text: "text",
},
},
"webhook_display_name": hook.DisplayName,
}, model.POST_SLACK_ATTACHMENT, "")
if err != nil {
t.Fatal(err.Error())
}
for _, k := range []string{"from_webhook", "attachments"} {
for _, k := range []string{"from_webhook", "attachments", "webhook_display_name"} {
if _, ok := post.Props[k]; !ok {
t.Log("missing one props: " + k)
t.Fatal(k)
}
}