mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Fixed failling integration tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
fcbd0f19fe
commit
8ef0624b9d
@@ -177,7 +177,8 @@ func testStorDBitCRUDTPAccountProfiles(t *testing.T) {
|
||||
RecurrentFee: utils.Float64Pointer(3.3),
|
||||
},
|
||||
},
|
||||
AttributeIDs: []string{"attr1", "attr2"},
|
||||
AttributeIDs: []string{"attr1", "attr2"},
|
||||
RateProfileIDs: []string{},
|
||||
UnitFactors: []*utils.TPBalanceUnitFactor{
|
||||
{
|
||||
FilterIDs: []string{"fltr1", "fltr2"},
|
||||
|
||||
@@ -42,8 +42,8 @@ var (
|
||||
|
||||
sTestBrodcastIt = []func(t *testing.T){
|
||||
testbrodcastItLoadConfig,
|
||||
// testbrodcastItResetDataDB,
|
||||
// testbrodcastItResetStorDb,
|
||||
testbrodcastItResetDataDB,
|
||||
testbrodcastItResetStorDb,
|
||||
testbrodcastItStartEngine,
|
||||
testbrodcastItRPCConn,
|
||||
testbrodcastItLoadFromFolder,
|
||||
@@ -87,17 +87,17 @@ func testbrodcastItLoadConfig(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// func testbrodcastItResetDataDB(t *testing.T) {
|
||||
// if err := engine.InitDataDb(brodcastCfg); err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// }
|
||||
func testbrodcastItResetDataDB(t *testing.T) {
|
||||
if err := engine.InitDataDb(brodcastInternalCfg); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
// func testbrodcastItResetStorDb(t *testing.T) {
|
||||
// if err := engine.InitStorDb(brodcastCfg); err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// }
|
||||
func testbrodcastItResetStorDb(t *testing.T) {
|
||||
if err := engine.InitStorDb(brodcastInternalCfg); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func testbrodcastItStartEngine(t *testing.T) {
|
||||
if _, err := engine.StopStartEngine(brodcastCfgPath, *waitRater); err != nil {
|
||||
|
||||
@@ -397,7 +397,7 @@ func testExpVerifyRateProfiles(t *testing.T) {
|
||||
RecurrentFee: utils.NewDecimal(1, 2),
|
||||
Unit: minDecimal,
|
||||
Increment: secDecimal,
|
||||
FixedFee: nil,
|
||||
FixedFee: utils.NewDecimal(0, 0),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -507,7 +507,8 @@ func testExpVerifyAccountProfiles(t *testing.T) {
|
||||
RecurrentFee: utils.NewDecimal(33, 1),
|
||||
},
|
||||
},
|
||||
AttributeIDs: []string{"attr1", "attr2"},
|
||||
AttributeIDs: []string{"attr1", "attr2"},
|
||||
RateProfileIDs: []string{},
|
||||
UnitFactors: []*utils.UnitFactor{
|
||||
{
|
||||
FilterIDs: []string{"fltr1", "fltr2"},
|
||||
|
||||
Reference in New Issue
Block a user