summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/post_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/api/post_test.go b/api/post_test.go
index 1fb6b3ded..f34141f77 100644
--- a/api/post_test.go
+++ b/api/post_test.go
@@ -295,6 +295,16 @@ func testCreatePostWithOutgoingHook(
}
}
+ resp := &model.OutgoingWebhookResponse{}
+ resp.Text = new(string)
+ *resp.Text = "some test text"
+ resp.Username = "testusername"
+ resp.IconURL = "http://www.mattermost.org/wp-content/uploads/2016/04/icon.png"
+ resp.Props = map[string]interface{}{"someprop": "somevalue"}
+ resp.Type = "custom_test"
+
+ w.Write([]byte(resp.ToJson()))
+
success <- true
}))
defer ts.Close()