updated tpreader to remove trend and ranking profiles with -remove flag

This commit is contained in:
gezimbll
2026-01-22 17:17:50 +01:00
committed by Dan Christian Bogos
parent 9d1e2f9050
commit 799b85ca70
5 changed files with 40 additions and 4 deletions

View File

@@ -1671,7 +1671,7 @@ func testApierResetDataAfterLoadFromFolder(t *testing.T) {
// expStats[utils.CacheActionPlans].Items = 7
expStats[utils.CacheActions].Items = 5
expStats[utils.CacheDestinations].Items = 3
expStats[utils.CacheLoadIDs].Items = 19
expStats[utils.CacheLoadIDs].Items = 20
expStats[utils.CacheRPCConnections].Items = 2
if err := rater.Call(context.Background(), utils.CacheSv1GetCacheStats, new(utils.AttrCacheIDsWithAPIOpts), &rcvStats); err != nil {
t.Error("Got error on CacheSv1.GetCacheStats: ", err.Error())

View File

@@ -133,7 +133,7 @@ func testCacheSAfterLoadFromFolder(t *testing.T) {
expStats := engine.GetDefaultEmptyCacheStats()
expStats[utils.CacheActions].Items = 5
expStats[utils.CacheDestinations].Items = 3
expStats[utils.CacheLoadIDs].Items = 19
expStats[utils.CacheLoadIDs].Items = 20
expStats[utils.CacheRPCConnections].Items = 2
if err := chcRPC.Call(context.Background(), utils.CacheSv1GetCacheStats, &utils.AttrCacheIDsWithAPIOpts{}, &rcvStats); err != nil {
t.Error("Got error on CacheSv1.GetCacheStats: ", err.Error())