summaryrefslogtreecommitdiffstats
path: root/api4/apitestlib.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2018-05-14 11:27:30 -0400
committerGitHub <noreply@github.com>2018-05-14 11:27:30 -0400
commit6a9aa855d1c862e4d39f8c00c6b7425405e7a612 (patch)
tree16f6326241b878a51e286c7bf70078b628b1f03d /api4/apitestlib.go
parent47250c6629416b628a19e5571ac89f7b4646418c (diff)
downloadchat-6a9aa855d1c862e4d39f8c00c6b7425405e7a612.tar.gz
chat-6a9aa855d1c862e4d39f8c00c6b7425405e7a612.tar.bz2
chat-6a9aa855d1c862e4d39f8c00c6b7425405e7a612.zip
Move SAML endpoints out of api package (#8780)
Diffstat (limited to 'api4/apitestlib.go')
-rw-r--r--api4/apitestlib.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api4/apitestlib.go b/api4/apitestlib.go
index 48765687a..0ce334154 100644
--- a/api4/apitestlib.go
+++ b/api4/apitestlib.go
@@ -26,6 +26,7 @@ import (
"github.com/mattermost/mattermost-server/store/sqlstore"
"github.com/mattermost/mattermost-server/store/storetest"
"github.com/mattermost/mattermost-server/utils"
+ "github.com/mattermost/mattermost-server/web"
"github.com/mattermost/mattermost-server/wsapi"
s3 "github.com/minio/minio-go"
@@ -120,6 +121,7 @@ func setupTestHelper(enterprise bool) *TestHelper {
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.ListenAddress = prevListenAddress })
Init(th.App, th.App.Srv.Router, true)
+ web.NewWeb(th.App, th.App.Srv.Router)
wsapi.Init(th.App, th.App.Srv.WebSocketRouter)
th.App.Srv.Store.MarkSystemRanUnitTests()
th.App.DoAdvancedPermissionsMigration()