mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
Fixed test in accounts by adding CostIncrement
This commit is contained in:
committed by
Dan Christian Bogos
parent
f3049f182f
commit
9ec30846f6
@@ -1281,6 +1281,11 @@ func TestAccountDebitAbstracts(t *testing.T) {
|
||||
Opts: map[string]interface{}{
|
||||
"Destination": 10,
|
||||
},
|
||||
CostIncrements: []*utils.APICostIncrement{
|
||||
{
|
||||
Increment: utils.Float64Pointer(0.1),
|
||||
},
|
||||
},
|
||||
Units: 0,
|
||||
},
|
||||
},
|
||||
@@ -1327,6 +1332,11 @@ func TestAccountDebitAbstracts(t *testing.T) {
|
||||
"Destination": 10,
|
||||
},
|
||||
Units: utils.NewDecimal(0, 0),
|
||||
CostIncrements: []*utils.CostIncrement{
|
||||
{
|
||||
Increment: utils.NewDecimal(1, 1),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
Weights: utils.DynamicWeights{
|
||||
@@ -1435,6 +1445,11 @@ func TestAccountDebitAbstracts(t *testing.T) {
|
||||
Opts: map[string]interface{}{
|
||||
"Destination": 10,
|
||||
},
|
||||
CostIncrements: []*utils.ExtCostIncrement{
|
||||
{
|
||||
Increment: utils.Float64Pointer(0.1),
|
||||
},
|
||||
},
|
||||
Units: utils.Float64Pointer(0),
|
||||
},
|
||||
},
|
||||
@@ -1472,6 +1487,11 @@ func TestAccountActionSetBalance(t *testing.T) {
|
||||
Opts: map[string]interface{}{
|
||||
"Destination": 10,
|
||||
},
|
||||
CostIncrements: []*utils.APICostIncrement{
|
||||
{
|
||||
Increment: utils.Float64Pointer(0.1),
|
||||
},
|
||||
},
|
||||
Units: 0,
|
||||
},
|
||||
},
|
||||
@@ -1517,6 +1537,11 @@ func TestAccountActionSetBalance(t *testing.T) {
|
||||
Opts: map[string]interface{}{
|
||||
"Destination": 10,
|
||||
},
|
||||
CostIncrements: []*utils.CostIncrement{
|
||||
{
|
||||
Increment: utils.NewDecimal(1, 1),
|
||||
},
|
||||
},
|
||||
Units: utils.NewDecimal(0, 0),
|
||||
},
|
||||
},
|
||||
@@ -1626,6 +1651,11 @@ func TestAccountActionSetBalance(t *testing.T) {
|
||||
Opts: map[string]interface{}{
|
||||
"Destination": 10,
|
||||
},
|
||||
CostIncrements: []*utils.ExtCostIncrement{
|
||||
{
|
||||
Increment: utils.Float64Pointer(0.1),
|
||||
},
|
||||
},
|
||||
Units: utils.Float64Pointer(0),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user