diff --git a/config/config_json_test.go b/config/config_json_test.go index 46cc06a1a..e5e515cc5 100755 --- a/config/config_json_test.go +++ b/config/config_json_test.go @@ -127,6 +127,12 @@ func TestCacheJsonCfg(t *testing.T) { utils.CacheStatQueues: &CacheParamJsonCfg{Limit: utils.IntPointer(-1), Ttl: utils.StringPointer("1m"), Static_ttl: utils.BoolPointer(false), Precache: utils.BoolPointer(false)}, + utils.CacheThresholdProfiles: &CacheParamJsonCfg{Limit: utils.IntPointer(-1), + Ttl: utils.StringPointer(""), Static_ttl: utils.BoolPointer(false), + Precache: utils.BoolPointer(false)}, + utils.CacheThresholds: &CacheParamJsonCfg{Limit: utils.IntPointer(-1), + Ttl: utils.StringPointer(""), Static_ttl: utils.BoolPointer(false), + Precache: utils.BoolPointer(false)}, } if gCfg, err := dfCgrJsonCfg.CacheJsonCfg(); err != nil { diff --git a/config/config_test.go b/config/config_test.go index dab9dd61b..3c6a3eddc 100755 --- a/config/config_test.go +++ b/config/config_test.go @@ -450,6 +450,10 @@ func TestCgrCfgJSONDefaultsCacheCFG(t *testing.T) { TTL: time.Duration(1 * time.Minute), StaticTTL: false, Precache: false}, utils.CacheStatQueues: &CacheParamConfig{Limit: -1, TTL: time.Duration(1 * time.Minute), StaticTTL: false, Precache: false}, + utils.CacheThresholdProfiles: &CacheParamConfig{Limit: -1, + TTL: time.Duration(0), StaticTTL: false, Precache: false}, + utils.CacheThresholds: &CacheParamConfig{Limit: -1, + TTL: time.Duration(0), StaticTTL: false, Precache: false}, } if !reflect.DeepEqual(eCacheCfg, cgrCfg.CacheConfig) { t.Errorf("received: %s, \nexpecting: %s", utils.ToJSON(eCacheCfg), utils.ToJSON(cgrCfg.CacheConfig))