diff --git a/apier/v1/actionprofiles_it_test.go b/apier/v1/actionprofiles_it_test.go index 25224235a..70c16b0e7 100644 --- a/apier/v1/actionprofiles_it_test.go +++ b/apier/v1/actionprofiles_it_test.go @@ -51,6 +51,7 @@ var ( testActionSPing, testActionSSettActionProfile, testActionSGetActionProfileIDs, + testActionSGetActionProfileIDsCount, testActionSUpdateActionProfile, testActionSRemoveActionProfile, testActionSKillEngine, @@ -280,6 +281,17 @@ func testActionSGetActionProfileIDs(t *testing.T) { } +func testActionSGetActionProfileIDsCount(t *testing.T) { + var reply int + if err := actSRPC.Call(utils.APIerSv1GetActionProfileIDsCount, + &utils.TenantWithOpts{Tenant: "tenant_test"}, &reply); err != nil { + t.Error(err) + } else if reply != 1 { + t.Errorf("Expecting: 1, received: %+v", reply) + } + +} + func testActionSUpdateActionProfile(t *testing.T) { var reply string actPrf.Weight = 2 diff --git a/utils/consts.go b/utils/consts.go index df6b1114c..b73ecbd8b 100755 --- a/utils/consts.go +++ b/utils/consts.go @@ -1736,10 +1736,11 @@ const ( // ActionProfile APIs const ( - APIerSv1SetActionProfile = "APIerSv1.SetActionProfile" - APIerSv1GetActionProfile = "APIerSv1.GetActionProfile" - APIerSv1GetActionProfileIDs = "APIerSv1.GetActionProfileIDs" - APIerSv1RemoveActionProfile = "APIerSv1.RemoveActionProfile" + APIerSv1SetActionProfile = "APIerSv1.SetActionProfile" + APIerSv1GetActionProfile = "APIerSv1.GetActionProfile" + APIerSv1GetActionProfileIDs = "APIerSv1.GetActionProfileIDs" + APIerSv1GetActionProfileIDsCount = "APIerSv1.GetActionProfileIDsCount" + APIerSv1RemoveActionProfile = "APIerSv1.RemoveActionProfile" ) //cgr_ variables