From dc54e640c296d50c51858fa50256b3aed9e0a46c Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 17 Jan 2017 15:01:41 +0100 Subject: Add inbucket docker image to allow local and automated testing of emails (#4901) * add docker container for inbucket * Add way to get the emails using inbucket and add a test for reset password * add config setting to send emails * update TestEmailTest update * add another test and fix wrong assert * update per review fix lint change senders email * Revert config.json to default values for EmailSettings section * update test * add setup to make the test run --- api/apitestlib.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'api/apitestlib.go') diff --git a/api/apitestlib.go b/api/apitestlib.go index cd54c8e2a..abd4767b7 100644 --- a/api/apitestlib.go +++ b/api/apitestlib.go @@ -59,6 +59,10 @@ func Setup() *TestHelper { utils.InitTranslations(utils.Cfg.LocalizationSettings) utils.Cfg.TeamSettings.MaxUsersPerTeam = 50 *utils.Cfg.RateLimitSettings.Enable = false + utils.Cfg.EmailSettings.SendEmailNotifications = true + utils.Cfg.EmailSettings.SMTPServer = "dockerhost" + utils.Cfg.EmailSettings.SMTPPort = "2500" + utils.Cfg.EmailSettings.FeedbackEmail = "test@example.com" utils.DisableDebugLogForTest() app.NewServer() app.InitStores() -- cgit v1.2.3-1-g7c22