Finished issue #1201

This commit is contained in:
andronache
2020-12-14 16:04:38 +02:00
committed by Dan Christian Bogos
parent 493193c3c8
commit 992d9e03ce
3 changed files with 5 additions and 2 deletions

View File

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

View File

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

View File

@@ -2614,6 +2614,9 @@ const (
Opts = "Opts"
)
//cgr-console constants
const ()
var (
// AnzIndexType are the analyzers possible index types
AnzIndexType = StringSet{