mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 15:48:44 +05:00
Updated Routes with DynamicWeights
This commit is contained in:
committed by
Dan Christian Bogos
parent
76bc9f0cd8
commit
a5d95f9fe7
@@ -339,7 +339,7 @@ func TestLoadRouteProfiles(t *testing.T) {
|
||||
RateProfileIDs: []string{"RPL_1"},
|
||||
ResourceIDs: []string{"ResGroup1"},
|
||||
StatIDs: []string{"Stat1"},
|
||||
Weight: 10,
|
||||
Weights: ";10",
|
||||
Blocker: true,
|
||||
RouteParameters: "param1",
|
||||
},
|
||||
@@ -348,7 +348,7 @@ func TestLoadRouteProfiles(t *testing.T) {
|
||||
RateProfileIDs: []string{"RPL_2"},
|
||||
ResourceIDs: []string{"ResGroup2", "ResGroup4"},
|
||||
StatIDs: []string{"Stat3"},
|
||||
Weight: 10,
|
||||
Weights: ";10",
|
||||
Blocker: false,
|
||||
RouteParameters: utils.EmptyString,
|
||||
},
|
||||
@@ -359,12 +359,12 @@ func TestLoadRouteProfiles(t *testing.T) {
|
||||
RateProfileIDs: []string{"RPL_3"},
|
||||
ResourceIDs: []string{"ResGroup3"},
|
||||
StatIDs: []string{"Stat2"},
|
||||
Weight: 10,
|
||||
Weights: ";10",
|
||||
Blocker: false,
|
||||
RouteParameters: utils.EmptyString,
|
||||
},
|
||||
},
|
||||
Weight: 20,
|
||||
Weights: ";20",
|
||||
}
|
||||
sort.Slice(eSppProfile.Routes, func(i, j int) bool {
|
||||
return strings.Compare(eSppProfile.Routes[i].ID+strings.Join(eSppProfile.Routes[i].FilterIDs, utils.ConcatenatedKeySep),
|
||||
|
||||
Reference in New Issue
Block a user