mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Finished integration tests for apier/v1/actionprofiles.go
This commit is contained in:
committed by
Dan Christian Bogos
parent
ce00012fb1
commit
12c19ed255
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user