Finished integration tests for apier/v1/actionprofiles.go

This commit is contained in:
andronache
2020-12-09 17:38:52 +02:00
committed by Dan Christian Bogos
parent ce00012fb1
commit 12c19ed255
2 changed files with 17 additions and 4 deletions

View File

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

View File

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