mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Finished issue #1201
This commit is contained in:
committed by
Dan Christian Bogos
parent
493193c3c8
commit
992d9e03ce
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -2614,6 +2614,9 @@ const (
|
||||
Opts = "Opts"
|
||||
)
|
||||
|
||||
//cgr-console constants
|
||||
const ()
|
||||
|
||||
var (
|
||||
// AnzIndexType are the analyzers possible index types
|
||||
AnzIndexType = StringSet{
|
||||
|
||||
Reference in New Issue
Block a user