mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 09:08:45 +05:00
added integration tests for ranking scheduling
This commit is contained in:
committed by
Dan Christian Bogos
parent
5242ba2440
commit
b8616282ee
@@ -1384,6 +1384,7 @@ func NewAttrReloadCacheWithOpts() *AttrReloadCacheWithAPIOpts {
|
||||
ResourceIDs: []string{MetaAny},
|
||||
StatsQueueIDs: []string{MetaAny},
|
||||
StatsQueueProfileIDs: []string{MetaAny},
|
||||
RankingIDs: []string{MetaAny},
|
||||
RankingProfileIDs: []string{MetaAny},
|
||||
TrendIDs: []string{MetaAny},
|
||||
TrendProfileIDs: []string{MetaAny},
|
||||
@@ -1426,6 +1427,7 @@ func NewAttrReloadCacheWithOptsFromMap(arg map[string][]string, tnt string, opts
|
||||
ResourceIDs: arg[CacheResources],
|
||||
StatsQueueIDs: arg[CacheStatQueues],
|
||||
StatsQueueProfileIDs: arg[CacheStatQueueProfiles],
|
||||
RankingIDs: arg[CacheRankings],
|
||||
RankingProfileIDs: arg[CacheRankingProfiles],
|
||||
ThresholdIDs: arg[CacheThresholds],
|
||||
ThresholdProfileIDs: arg[CacheThresholdProfiles],
|
||||
@@ -1466,6 +1468,7 @@ type AttrReloadCacheWithAPIOpts struct {
|
||||
ResourceIDs []string `json:",omitempty"`
|
||||
StatsQueueIDs []string `json:",omitempty"`
|
||||
StatsQueueProfileIDs []string `json:",omitempty"`
|
||||
RankingIDs []string `json:",omitempty"`
|
||||
RankingProfileIDs []string `json:",omitempty"`
|
||||
TrendIDs []string `json:",omitempty"`
|
||||
TrendProfileIDs []string `json:",omitempty"`
|
||||
@@ -1506,6 +1509,7 @@ func (a *AttrReloadCacheWithAPIOpts) Map() map[string][]string {
|
||||
CacheStatQueueProfiles: a.StatsQueueProfileIDs,
|
||||
CacheThresholds: a.ThresholdIDs,
|
||||
CacheThresholdProfiles: a.ThresholdProfileIDs,
|
||||
CacheRankings: a.RankingIDs,
|
||||
CacheRankingProfiles: a.RankingProfileIDs,
|
||||
CacheTrends: a.TrendIDs,
|
||||
CacheTrendProfiles: a.TrendProfileIDs,
|
||||
|
||||
@@ -999,6 +999,7 @@ func TestNewAttrReloadCacheWithOpts(t *testing.T) {
|
||||
ChargerFilterIndexIDs: []string{MetaAny},
|
||||
DispatcherFilterIndexIDs: []string{MetaAny},
|
||||
FilterIndexIDs: []string{MetaAny},
|
||||
RankingIDs: []string{MetaAny},
|
||||
RankingProfileIDs: []string{MetaAny},
|
||||
}
|
||||
eMap := NewAttrReloadCacheWithOpts()
|
||||
|
||||
@@ -38,7 +38,7 @@ var (
|
||||
|
||||
DataDBPartitions = NewStringSet([]string{CacheDestinations, CacheReverseDestinations, CacheRatingPlans,
|
||||
CacheRatingProfiles, CacheDispatcherProfiles, CacheDispatcherHosts, CacheChargerProfiles, CacheActions, CacheActionTriggers, CacheSharedGroups, CacheTimings,
|
||||
CacheResourceProfiles, CacheResources, CacheEventResources, CacheStatQueueProfiles, CacheRankingProfiles, CacheStatQueues,
|
||||
CacheResourceProfiles, CacheResources, CacheEventResources, CacheStatQueueProfiles, CacheRankingProfiles, CacheRankings, CacheStatQueues,
|
||||
CacheThresholdProfiles, CacheThresholds, CacheFilters, CacheRouteProfiles, CacheAttributeProfiles, CacheTrendProfiles, CacheTrends,
|
||||
CacheResourceFilterIndexes, CacheStatFilterIndexes, CacheThresholdFilterIndexes, CacheRouteFilterIndexes,
|
||||
CacheAttributeFilterIndexes, CacheChargerFilterIndexes, CacheDispatcherFilterIndexes, CacheLoadIDs,
|
||||
@@ -70,6 +70,7 @@ var (
|
||||
CacheStatQueueProfiles: StatQueueProfilePrefix,
|
||||
CacheStatQueues: StatQueuePrefix,
|
||||
CacheRankingProfiles: RankingsProfilePrefix,
|
||||
CacheRankings: RankingPrefix,
|
||||
CacheTrendProfiles: TrendsProfilePrefix,
|
||||
CacheTrends: TrendPrefix,
|
||||
CacheThresholdProfiles: ThresholdProfilePrefix,
|
||||
@@ -1729,6 +1730,9 @@ const (
|
||||
APIerSv1GetRankingProfile = "APIerSv1.GetRankingProfile"
|
||||
APIerSv1GetRankingProfileIDs = "APIerSv1.GetRankingProfileIDs"
|
||||
RankingSv1Ping = "RankingSv1.Ping"
|
||||
RankingSv1GetRanking = "RankingSv1.GetRanking"
|
||||
RankingSv1GetSchedule = "RankingSv1.GetSchedule"
|
||||
RankingSv1ScheduleQueries = "RankingSv1.ScheduleQueries"
|
||||
)
|
||||
|
||||
// ResourceS APIs
|
||||
|
||||
Reference in New Issue
Block a user