prometheus: replace string literals with constants

This commit is contained in:
ionutboangiu
2025-04-25 21:58:24 +03:00
committed by Dan Christian Bogos
parent 7c5a00ff4d
commit 2efb1b4d35
5 changed files with 304 additions and 205 deletions

View File

@@ -604,7 +604,7 @@ func testConfigSStartEngineCAPSAllocated(t *testing.T) {
t.Errorf("Expected %+v , received: %+v ", "CAPSPeakEngine", rply)
}
if _, has := rply[utils.CAPSAllocated]; !has {
if _, has := rply[utils.MetricCapsAllocated]; !has {
t.Errorf("Expected reply to contain CAPSAllocated , received <%+v>", rply)
}
}
@@ -637,7 +637,7 @@ func testConfigSCAPSPeak(t *testing.T) {
t.Error(err)
}
if _, has := rply[utils.CAPSPeak]; !has {
if _, has := rply[utils.MetricCapsPeak]; !has {
t.Errorf("Expected reply to contain CAPSPeak , received <%+v>", rply)
}
}