diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-01-17 15:01:41 +0100 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-01-17 09:01:41 -0500 |
commit | dc54e640c296d50c51858fa50256b3aed9e0a46c (patch) | |
tree | b5b9dc2b044535570cb885307de366136c2b3419 /app | |
parent | 97a51b0e31692b7f86a9971ad36d62b04100fffb (diff) | |
download | chat-dc54e640c296d50c51858fa50256b3aed9e0a46c.tar.gz chat-dc54e640c296d50c51858fa50256b3aed9e0a46c.tar.bz2 chat-dc54e640c296d50c51858fa50256b3aed9e0a46c.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/apptestlib.go | 1 | ||||
-rw-r--r-- | app/notification_test.go | 1 |
2 files changed, 2 insertions, 0 deletions
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(), |