mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
Correction getCost in tutorial - getCost does not consider balances, adding TCC and TCD in CDRST1 instance
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
CDRST1,10,0,ASR,,,,,,,cgrates.org,,,,,,,default,,,,CDRST1_WARN
|
||||
CDRST1,,,ACD,,,,,,,,,,,,,,,,,,
|
||||
CDRST1,,,ACC,,,,,,,,,,,,,,,,,,
|
||||
CDRST1,,,TCD,,,,,,,,,,,,,,,,,,
|
||||
CDRST1,,,TCC,,,,,,,,,,,,,,,,,,
|
||||
CDRST_1001,10,10m,ASR,,,,,,,cgrates.org,,,1001,,,,default,,,,CDRST1001_WARN
|
||||
CDRST_1001,,,ACD,,,,,,,,,,,,,,,,,,
|
||||
CDRST_1001,,,ACC,,,,,,,,,,,,,,,,,,
|
||||
|
||||
|
@@ -256,7 +256,7 @@ func TestTutFsCallsGetCosts(t *testing.T) {
|
||||
var cc engine.CallCost
|
||||
if err := tutFsCallsRpc.Call("Responder.GetCost", cd, &cc); err != nil {
|
||||
t.Error("Got error on Responder.GetCost: ", err.Error())
|
||||
} else if cc.Cost != 0.01 {
|
||||
} else if cc.Cost != 0.6 {
|
||||
t.Errorf("Calling Responder.GetCost got callcost: %v", cc.Cost)
|
||||
}
|
||||
tStart, _ = utils.ParseDate("2014-08-04T13:00:00Z")
|
||||
@@ -274,7 +274,7 @@ func TestTutFsCallsGetCosts(t *testing.T) {
|
||||
}
|
||||
if err := tutFsCallsRpc.Call("Responder.GetCost", cd, &cc); err != nil {
|
||||
t.Error("Got error on Responder.GetCost: ", err.Error())
|
||||
} else if cc.Cost != 0.05 { // 0.01 first minute, 0.04 25 seconds with RT_20CNT
|
||||
} else if cc.Cost != 0.6417 { // 0.01 first minute, 0.04 25 seconds with RT_20CNT
|
||||
t.Errorf("Calling Responder.GetCost got callcost: %v", cc.Cost)
|
||||
}
|
||||
tStart, _ = utils.ParseDate("2014-08-04T13:00:00Z")
|
||||
|
||||
@@ -254,7 +254,7 @@ func TestTutKamCallsGetCosts(t *testing.T) {
|
||||
var cc engine.CallCost
|
||||
if err := tutKamCallsRpc.Call("Responder.GetCost", cd, &cc); err != nil {
|
||||
t.Error("Got error on Responder.GetCost: ", err.Error())
|
||||
} else if cc.Cost != 0.01 {
|
||||
} else if cc.Cost != 0.6 {
|
||||
t.Errorf("Calling Responder.GetCost got callcost: %v", cc.Cost)
|
||||
}
|
||||
tStart, _ = utils.ParseDate("2014-08-04T13:00:00Z")
|
||||
@@ -272,7 +272,7 @@ func TestTutKamCallsGetCosts(t *testing.T) {
|
||||
}
|
||||
if err := tutKamCallsRpc.Call("Responder.GetCost", cd, &cc); err != nil {
|
||||
t.Error("Got error on Responder.GetCost: ", err.Error())
|
||||
} else if cc.Cost != 0.05 {
|
||||
} else if cc.Cost != 0.6417 {
|
||||
t.Errorf("Calling Responder.GetCost got callcost: %v", cc.Cost)
|
||||
}
|
||||
tStart, _ = utils.ParseDate("2014-08-04T13:00:00Z")
|
||||
|
||||
Reference in New Issue
Block a user