From 992d9e03cece6ba77dacb9e3db2280a71c033e34 Mon Sep 17 00:00:00 2001 From: andronache Date: Mon, 14 Dec 2020 16:04:38 +0200 Subject: [PATCH] Finished issue #1201 --- apier/v1/apier_it_test.go | 2 +- apier/v1/tpratingprofiles_it_test.go | 2 +- utils/consts.go | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apier/v1/apier_it_test.go b/apier/v1/apier_it_test.go index 6195efb4c..6ce6a943d 100644 --- a/apier/v1/apier_it_test.go +++ b/apier/v1/apier_it_test.go @@ -529,7 +529,7 @@ func testApierTPRatingProfile(t *testing.T) { // Check missing params if err := rater.Call(utils.APIerSv1SetTPRatingProfile, new(utils.TPRatingProfile), &reply); err == nil { t.Error("Calling APIerSv1.SetTPRatingProfile, expected error, received: ", reply) - } else if err.Error() != "MANDATORY_IE_MISSING: [TPid LoadId Tenant Category Subject RatingPlanActivations]" { + } else if err.Error() != "MANDATORY_IE_MISSING: [TPid LoadId Category Subject RatingPlanActivations]" { t.Error("Calling APIerSv1.SetTPRatingProfile got unexpected error: ", err.Error()) } // Test get diff --git a/apier/v1/tpratingprofiles_it_test.go b/apier/v1/tpratingprofiles_it_test.go index ab99f0cc2..1890e5915 100644 --- a/apier/v1/tpratingprofiles_it_test.go +++ b/apier/v1/tpratingprofiles_it_test.go @@ -189,7 +189,7 @@ func testTPRatingProfilesGetTPRatingProfileLoadIds(t *testing.T) { func testTPRatingProfilesGetTPRatingProfilesByLoadID(t *testing.T) { var respond *[]*utils.TPRatingProfile if err := tpRatingProfileRPC.Call(utils.APIerSv1GetTPRatingProfilesByLoadID, - &utils.TPRatingProfile{TPid: "TPRProf1", LoadId: "RPrf"}, &respond); err != nil { + &utils.TPRatingProfile{TPid: "TPRProf1", LoadId: "RPrf", Tenant: "Tenant1"}, &respond); err != nil { t.Error(err) } else if !reflect.DeepEqual(tpRatingProfile.TPid, (*respond)[0].TPid) { t.Errorf("Expecting : %+v, received: %+v", tpRatingProfile.TPid, (*respond)[0].TPid) diff --git a/utils/consts.go b/utils/consts.go index 2b4d1e8e2..3aa7c7102 100755 --- a/utils/consts.go +++ b/utils/consts.go @@ -2614,6 +2614,9 @@ const ( Opts = "Opts" ) +//cgr-console constants +const () + var ( // AnzIndexType are the analyzers possible index types AnzIndexType = StringSet{