فهرست منبع

Update mailer tests to include `FromName`

Jacob Bednarz 8 سال پیش
والد
کامیت
796957c8c6
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      pkg/services/notifications/notifications_test.go
  2. 1 0
      pkg/services/notifications/send_email_integration_test.go

+ 1 - 0
pkg/services/notifications/notifications_test.go

@@ -23,6 +23,7 @@ func TestNotifications(t *testing.T) {
 		setting.Smtp.Enabled = true
 		setting.Smtp.Enabled = true
 		setting.Smtp.TemplatesPattern = "emails/*.html"
 		setting.Smtp.TemplatesPattern = "emails/*.html"
 		setting.Smtp.FromAddress = "from@address.com"
 		setting.Smtp.FromAddress = "from@address.com"
+		setting.Smtp.FromName = "Grafana Admin"
 
 
 		err := Init()
 		err := Init()
 		So(err, ShouldBeNil)
 		So(err, ShouldBeNil)

+ 1 - 0
pkg/services/notifications/send_email_integration_test.go

@@ -18,6 +18,7 @@ func TestEmailIntegrationTest(t *testing.T) {
 		setting.Smtp.Enabled = true
 		setting.Smtp.Enabled = true
 		setting.Smtp.TemplatesPattern = "emails/*.html"
 		setting.Smtp.TemplatesPattern = "emails/*.html"
 		setting.Smtp.FromAddress = "from@address.com"
 		setting.Smtp.FromAddress = "from@address.com"
+		setting.Smtp.FromName = "Grafana Admin"
 		setting.BuildVersion = "4.0.0"
 		setting.BuildVersion = "4.0.0"
 
 
 		err := Init()
 		err := Init()