Remove slack from all mattermost files

pull/1081/head
Adam Boutcher 2021-09-14 13:26:23 +01:00
parent 30f27aa19e
commit f3cb5f8cad
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ var mattermoster = &mattermost{&notifications.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 {

View File

@ -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) {