mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Fixed in apier/v1 integration tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
332b174915
commit
abc2572d27
@@ -212,7 +212,6 @@ func testCacheSReplicateProcessRateProfile(t *testing.T) {
|
||||
exp := &engine.RateProfileCost{
|
||||
ID: "RT_SPECIAL_1002",
|
||||
Cost: 0.01,
|
||||
|
||||
RateSIntervals: []*engine.RateSInterval{{
|
||||
UsageStart: 0,
|
||||
Increments: []*engine.RateSIncrement{{
|
||||
|
||||
@@ -540,7 +540,7 @@ func testV1RatePrfRemoveRateProfileRates(t *testing.T) {
|
||||
ID: "RT_CHRISTMAS",
|
||||
Weights: utils.DynamicWeights{
|
||||
{
|
||||
Weight: 0,
|
||||
Weight: 30,
|
||||
},
|
||||
},
|
||||
ActivationTimes: "* * 24 12 *",
|
||||
@@ -868,7 +868,7 @@ func testV1RateCostForEventWithDefault(t *testing.T) {
|
||||
APIRateProfile: &engine.APIRateProfile{
|
||||
ID: "DefaultRate",
|
||||
FilterIDs: []string{"*string:~*req.Subject:1001"},
|
||||
Weights: ";0",
|
||||
Weights: ";10",
|
||||
Rates: map[string]*engine.APIRate{
|
||||
"RATE1": &engine.APIRate{
|
||||
ID: "RATE1",
|
||||
@@ -929,7 +929,6 @@ func testV1RateCostForEventWithDefault(t *testing.T) {
|
||||
t.Error(err)
|
||||
} else if !reflect.DeepEqual(exp, rply) {
|
||||
t.Errorf("Expected %+v \n, received %+v", utils.ToJSON(exp), utils.ToJSON(rply))
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user