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 --- app/apptestlib.go | 1 + app/notification_test.go | 1 + 2 files changed, 2 insertions(+) (limited to 'app') diff --git a/app/apptestlib.go b/app/apptestlib.go index dee6f0fd9..41e234130 100644 --- a/app/apptestlib.go +++ b/app/apptestlib.go @@ -53,6 +53,7 @@ func Setup() *TestHelper { NewServer() InitStores() StartServer() + utils.InitHTML() utils.EnableDebugLogForTest() Srv.Store.MarkSystemRanUnitTests() diff --git a/app/notification_test.go b/app/notification_test.go index d3aea214c..8554d0af6 100644 --- a/app/notification_test.go +++ b/app/notification_test.go @@ -178,6 +178,7 @@ func TestGetExplicitMentionsAtHere(t *testing.T) { } func TestGetMentionKeywords(t *testing.T) { + Setup() // user with username or custom mentions enabled user1 := &model.User{ Id: model.NewId(), -- cgit v1.2.3-1-g7c22