From f3cb5f8cad276792237374ae53820f814681f74b Mon Sep 17 00:00:00 2001 From: Adam Boutcher Date: Tue, 14 Sep 2021 13:26:23 +0100 Subject: [PATCH] Remove slack from all mattermost files --- notifiers/mattermost.go | 2 +- notifiers/mattermost_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notifiers/mattermost.go b/notifiers/mattermost.go index 5829cbe9..dec0af20 100644 --- a/notifiers/mattermost.go +++ b/notifiers/mattermost.go @@ -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 { diff --git a/notifiers/mattermost_test.go b/notifiers/mattermost_test.go index ac9cb400..e49366fe 100644 --- a/notifiers/mattermost_test.go +++ b/notifiers/mattermost_test.go @@ -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) {