mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 21:29:52 +05:00
Fixed case when get metrics
This commit is contained in:
committed by
Dan Christian Bogos
parent
b90c2cd5b3
commit
21f612113c
@@ -57,11 +57,11 @@ var (
|
||||
testCgrLdrGetResourceAfterLoad,
|
||||
testCgrLdrGetRouteProfileAfterLoad,
|
||||
testCgrLdrGetStatsProfileAfterLoad,
|
||||
//testCgrLdrGetStatQueueAfterLoad,
|
||||
testCgrLdrGetStatQueueAfterLoad,
|
||||
testCgrLdrGetThresholdProfileAfterLoad,
|
||||
testCgrLdrGetThresholdAfterLoad,
|
||||
|
||||
//remove all data with cgr-laoder and remove flag
|
||||
//remove all data with cgr-loader and remove flag
|
||||
testCgrLdrRemoveData,
|
||||
testCgrLdrGetSubsystemsNotLoadedLoad,
|
||||
testCgrLdrKillEngine,
|
||||
@@ -184,7 +184,6 @@ func testCgrLdrGetSubsystemsNotLoadedLoad(t *testing.T) {
|
||||
t.Errorf("Expected %+q, received %+q", utils.ErrNotFound.Error(), err.Error())
|
||||
}
|
||||
|
||||
/*
|
||||
// statsPrf
|
||||
var replySts *engine.StatQueueProfile
|
||||
if err := cgrLdrBIRPC.Call(context.Background(), utils.AdminSv1GetStatQueueProfile,
|
||||
@@ -193,8 +192,6 @@ func testCgrLdrGetSubsystemsNotLoadedLoad(t *testing.T) {
|
||||
t.Errorf("Expected %+q, received %+q", utils.ErrNotFound.Error(), err.Error())
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
// statQueue
|
||||
var replyStQue *engine.StatQueue
|
||||
if err := cgrLdrBIRPC.Call(context.Background(), utils.StatSv1GetStatQueue,
|
||||
@@ -603,13 +600,14 @@ func testCgrLdrGetStatsProfileAfterLoad(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func testCgrLdrGetStatQueueAfterLoad(t *testing.T) {
|
||||
expStatQueue := &engine.StatQueue{
|
||||
|
||||
expStatQueue := map[string]string{
|
||||
"*acd": "N/A",
|
||||
"*tcd": "N/A",
|
||||
"*asr": "N/A",
|
||||
}
|
||||
var replyStQue *engine.StatQueue
|
||||
if err := cgrLdrBIRPC.Call(context.Background(), utils.StatSv1GetStatQueue,
|
||||
replyStQue := make(map[string]string)
|
||||
if err := cgrLdrBIRPC.Call(context.Background(), utils.StatSv1GetQueueStringMetrics,
|
||||
&utils.TenantIDWithAPIOpts{TenantID: &utils.TenantID{Tenant: "cgrates.org", ID: "Stat_1"}},
|
||||
&replyStQue);err != nil {
|
||||
t.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user