mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Renamed ApierV1 to APIerSv1/ ApierV2 to APIerSv2
This commit is contained in:
committed by
Dan Christian Bogos
parent
54217c8428
commit
3eaf3232a1
@@ -121,7 +121,7 @@ func testTutorialRpcConn(t *testing.T) {
|
||||
func testTutorialFromFolder(t *testing.T) {
|
||||
var reply string
|
||||
attrs := &utils.AttrLoadTpFromFolder{FolderPath: path.Join(*dataDir, "tariffplans", "tutorial")}
|
||||
if err := tutorialRpc.Call(utils.ApierV1LoadTariffPlanFromFolder, attrs, &reply); err != nil {
|
||||
if err := tutorialRpc.Call(utils.APIerSv1LoadTariffPlanFromFolder, attrs, &reply); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
@@ -137,7 +137,7 @@ func testTutorialGetCost(t *testing.T) {
|
||||
Usage: "2m10s",
|
||||
}
|
||||
var rply *engine.EventCost
|
||||
if err := tutorialRpc.Call(utils.ApierV1GetCost, attrs, &rply); err != nil {
|
||||
if err := tutorialRpc.Call(utils.APIerSv1GetCost, attrs, &rply); err != nil {
|
||||
t.Error("Unexpected nil error received: ", err.Error())
|
||||
} else if *rply.Cost != 0.716900 {
|
||||
t.Errorf("Unexpected cost received: %f", *rply.Cost)
|
||||
|
||||
Reference in New Issue
Block a user