diff --git a/Readme.md b/Readme.md index dc004bf..23aa0b6 100644 --- a/Readme.md +++ b/Readme.md @@ -26,11 +26,12 @@ Todo till we can fork this repo ## Notes: -- Fixes have been placed into the beego orm for setting the timezone when using NewOrmWithDB() +- Fixes have been placed into the beego orm for setting the timezone when using NewOrmWithDB() (Already merged) +- Bee needs the dir patch (merge pending) ## Script -- script that runs all migrations (and passes through rollback or others, show states for company, run for single company) (list, connect, migrate) +- ~~script that runs all migrations (and passes through rollback or others, show states for company, run for single company) (list, connect, migrate)~~ ## dependencies diff --git a/tests/main.go b/tests/main.go index 031cdb7..176b739 100644 --- a/tests/main.go +++ b/tests/main.go @@ -2,7 +2,9 @@ package test import ( _ "multitenantStack/routers" - auth "multitenantStack/services/authentication" + "multitenantStack/services/companydb" + "multitenantStack/services/tokenTools" + "time" "github.com/astaxie/beego" "github.com/astaxie/beego/orm" @@ -10,10 +12,11 @@ import ( ) func init() { - orm.RegisterDataBase("default", "postgres", "host=127.0.0.1 port=5435 user=postgres password=postgre sslmode=disable") - auth.InitAuthService() + tokenTools.InitTokenToolsService() + companydb.InitCompanyDBService() + orm.DefaultTimeLoc = time.UTC - orm.Debug = true beego.BConfig.WebConfig.DirectoryIndex = true beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger" + orm.Debug = true }