Updated tests in apier and general_tests

This commit is contained in:
adragusin
2020-03-03 19:20:50 +02:00
committed by Dan Christian Bogos
parent f21ed245ca
commit 1e6b59c7ee
12 changed files with 555 additions and 133 deletions

View File

@@ -738,15 +738,8 @@ func (iDB *InternalDB) GetActionsDrv(id string) (acts Actions, err error) {
}
func (iDB *InternalDB) SetActionsDrv(id string, acts Actions) (err error) {
utils.Logger.Debug("ENTER IN SET ACTIONS DRV ??? ")
iDB.db.Set(utils.CacheActions, id, acts, nil,
cacheCommit(utils.NonTransactional), utils.NonTransactional)
utils.Logger.Debug("Set With Success ")
x, ok := iDB.db.Get(utils.CacheActions, id)
if !ok || x == nil {
utils.Logger.Debug("NOT FOUND ")
}
utils.Logger.Debug(fmt.Sprintf("ACTIONS : %+v", utils.ToJSON(x.(Actions))))
return
}