diff --git a/plugin/api/alerting/channel.go b/plugin/api/alerting/channel.go index 792c44c2..18a499ef 100644 --- a/plugin/api/alerting/channel.go +++ b/plugin/api/alerting/channel.go @@ -181,8 +181,8 @@ func (h *AlertAPI) testChannel(w http.ResponseWriter, req *http.Request, ps http return } ctx := map[string]interface{}{ - "title": "test title", - "message": "test message", + "title": "INFINI platform test alert message", + "message": "This is just a test email, do not reply!", "rule_id": util.GetUUID(), "rule_name": "test rule", "resource_id": util.GetUUID(), diff --git a/plugin/api/email/server.go b/plugin/api/email/server.go index 4daf334f..8a6637b6 100644 --- a/plugin/api/email/server.go +++ b/plugin/api/email/server.go @@ -353,7 +353,7 @@ func (h *EmailAPI) testEmailServer(w http.ResponseWriter, req *http.Request, ps message := gomail.NewMessage() message.SetHeader("From", reqBody.Auth.Username) message.SetHeader("To", reqBody.SendTo...) - message.SetHeader("Subject", "test email") + message.SetHeader("Subject", "INFINI platform test email") message.SetBody("text/plain", "This is just a test email, do not reply!") d := gomail.NewDialerWithTimeout(reqBody.Host, reqBody.Port, reqBody.Auth.Username, reqBody.Auth.Password, 3*time.Second)