mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Update offline tests
This commit is contained in:
@@ -126,11 +126,10 @@ func testTPAcctPrfSetTPAcctPrf(t *testing.T) {
|
||||
Weight: 20,
|
||||
Balances: map[string]*utils.TPAccountBalance{
|
||||
"MonetaryBalance": {
|
||||
ID: "MonetaryBalance",
|
||||
FilterIDs: []string{},
|
||||
Weight: 10,
|
||||
Type: utils.MetaMonetary,
|
||||
Units: 14,
|
||||
ID: "MonetaryBalance",
|
||||
Weight: 10,
|
||||
Type: utils.MetaMonetary,
|
||||
Units: 14,
|
||||
},
|
||||
},
|
||||
ThresholdIDs: []string{utils.MetaNone},
|
||||
|
||||
@@ -122,12 +122,11 @@ func testTPActPrfGetTPActPrfBeforeSet(t *testing.T) {
|
||||
|
||||
func testTPActPrfSetTPActPrf(t *testing.T) {
|
||||
tpActPrf = &utils.TPActionProfile{
|
||||
TPid: "TP1",
|
||||
Tenant: "cgrates.org",
|
||||
ID: "ONE_TIME_ACT",
|
||||
Weight: 10,
|
||||
Schedule: utils.MetaASAP,
|
||||
FilterIDs: make([]string, 0),
|
||||
TPid: "TP1",
|
||||
Tenant: "cgrates.org",
|
||||
ID: "ONE_TIME_ACT",
|
||||
Weight: 10,
|
||||
Schedule: utils.MetaASAP,
|
||||
Targets: []*utils.TPActionTarget{
|
||||
&utils.TPActionTarget{
|
||||
TargetType: utils.MetaAccounts,
|
||||
|
||||
@@ -132,8 +132,7 @@ func testTPRouteSetTPRoute(t *testing.T) {
|
||||
ActivationTime: "2014-07-29T15:00:00Z",
|
||||
ExpiryTime: "",
|
||||
},
|
||||
Sorting: "*lc",
|
||||
SortingParameters: []string{},
|
||||
Sorting: "*lc",
|
||||
Routes: []*utils.TPRoute{
|
||||
&utils.TPRoute{
|
||||
ID: "route1",
|
||||
|
||||
Reference in New Issue
Block a user