Renamed ApierV1 to APIerSv1/ ApierV2 to APIerSv2

This commit is contained in:
adragusin
2020-01-30 14:59:06 +02:00
committed by Dan Christian Bogos
parent 54217c8428
commit 3eaf3232a1
263 changed files with 2998 additions and 2995 deletions

View File

@@ -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)