Changed Weights from float64 to DynamicWeights for Resources and Chargers

This commit is contained in:
andronache98
2022-02-10 14:53:51 +02:00
committed by Dan Christian Bogos
parent 74700402f2
commit fad736e5a6
62 changed files with 1322 additions and 621 deletions

View File

@@ -94,7 +94,7 @@ func TestLoadResourceProfiles(t *testing.T) {
FilterIDs: []string{"*string:~*req.Account:1001"},
UsageTTL: "1s",
AllocationMessage: "call",
Weight: 10,
Weights: ";10",
Limit: "2",
Blocker: true,
Stored: true,
@@ -108,7 +108,7 @@ func TestLoadResourceProfiles(t *testing.T) {
AllocationMessage: "premium_call",
Blocker: true,
Stored: true,
Weight: 10,
Weights: ";10",
Limit: "2",
},
}
@@ -441,7 +441,7 @@ func TestLoadChargerProfiles(t *testing.T) {
FilterIDs: []string{"*string:~*req.Account:1001"},
RunID: "*rated",
AttributeIDs: []string{"ATTR_1001_SIMPLEAUTH"},
Weight: 20,
Weights: ";20",
},
}
cppKey := utils.TenantID{Tenant: "cgrates.org", ID: "Charger1"}