diff options
author | Pradeep Murugesan <pradeepmurugesan@outlook.com> | 2018-07-25 14:31:41 +0200 |
---|---|---|
committer | Jesse Hallam <jesse.hallam@gmail.com> | 2018-07-25 08:31:41 -0400 |
commit | b3c2ecd9b9209413e7272b2fcd7bd3d04f2f85f4 (patch) | |
tree | 6c4ebe9d5bd20b2923e85b0586c7929682d392c5 /api4 | |
parent | b89ccca929e67ddd2a8f7ac2e952532bf615a51b (diff) | |
download | chat-b3c2ecd9b9209413e7272b2fcd7bd3d04f2f85f4.tar.gz chat-b3c2ecd9b9209413e7272b2fcd7bd3d04f2f85f4.tar.bz2 chat-b3c2ecd9b9209413e7272b2fcd7bd3d04f2f85f4.zip |
added the custom icon and username for the outgoing webhook and its response (#9141)
* 8272 added the username and icon as part of the model and persisted the same
* 8272 added the custome icon and name when set to the web hook response
* 8272 changed the infinte loop to timeout after 5 seconds
* 8272 fixed review comments
Diffstat (limited to 'api4')
-rw-r--r-- | api4/webhook_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/webhook_test.go b/api4/webhook_test.go index 441fb8bb7..764f25709 100644 --- a/api4/webhook_test.go +++ b/api4/webhook_test.go @@ -256,7 +256,7 @@ func TestCreateOutgoingWebhook(t *testing.T) { th.AddPermissionToRole(model.PERMISSION_MANAGE_WEBHOOKS.Id, model.TEAM_ADMIN_ROLE_ID) th.RemovePermissionFromRole(model.PERMISSION_MANAGE_WEBHOOKS.Id, model.TEAM_USER_ROLE_ID) - hook := &model.OutgoingWebhook{ChannelId: th.BasicChannel.Id, TeamId: th.BasicChannel.TeamId, CallbackURLs: []string{"http://nowhere.com"}} + hook := &model.OutgoingWebhook{ChannelId: th.BasicChannel.Id, TeamId: th.BasicChannel.TeamId, CallbackURLs: []string{"http://nowhere.com"}, Username: "some-user-name", IconURL: "http://some-icon-url/"} rhook, resp := th.SystemAdminClient.CreateOutgoingWebhook(hook) CheckNoError(t, resp) |