mirror of https://github.com/statping/statping
Remove slack from all mattermost files
parent
30f27aa19e
commit
f3cb5f8cad
|
@ -51,7 +51,7 @@ var mattermoster = &mattermost{¬ifications.Notification{
|
|||
}}},
|
||||
}
|
||||
|
||||
// Send will send a HTTP Post to the slack webhooker API. It accepts type: string
|
||||
// Send will send a HTTP Post to the mattermost webhooker API. It accepts type: string
|
||||
func (s *mattermost) sendMattermost(msg string) (string, error) {
|
||||
resp, _, err := utils.HttpRequest(s.Host.String, "POST", "application/json", nil, strings.NewReader(msg), time.Duration(10*time.Second), true, nil)
|
||||
if err != nil {
|
||||
|
|
|
@ -35,7 +35,7 @@ func TestMattermostNotifier(t *testing.T) {
|
|||
t.SkipNow()
|
||||
}
|
||||
|
||||
mattermoster.Host = null.NewNullString(SLACK_URL)
|
||||
mattermoster.Host = null.NewNullString(MATTERMOST_URL)
|
||||
mattermoster.Enabled = null.NewNullBool(true)
|
||||
|
||||
t.Run("Load mattermost", func(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue