Added integration tests for CacheSv1 methods from DispatcherSv1

This commit is contained in:
Trial97
2019-03-18 16:50:35 +02:00
committed by Dan Christian Bogos
parent ac31d88d43
commit 2c2860ae82
3 changed files with 362 additions and 1 deletions

View File

@@ -1327,7 +1327,9 @@ func main() {
// init cache
cacheS := engine.NewCacheS(cfg, dm)
server.RpcRegister(v1.NewCacheSv1(cacheS)) // before pre-caching so we can check status via API
if !cfg.DispatcherSCfg().Enabled {
server.RpcRegister(v1.NewCacheSv1(cacheS)) // before pre-caching so we can check status via API
}
go func() {
if err := cacheS.Precache(); err != nil {
errCGR := err.(*utils.CGRError)