diff options
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) |