Skip to content

Commit 5390271

Browse files
committed
fix test
1 parent 638908f commit 5390271

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/pkg/metrics/alerts/alerts_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,16 @@ func TestBuildRules_DefaultWithFeaturesAndDisabled(t *testing.T) {
117117
"LatencyHighTrend_PerDstNamespaceInfo",
118118
"Ingress5xxErrors_PerSrcNamespaceWarning",
119119
"Ingress5xxErrors_PerSrcNamespaceInfo",
120-
"IngressLatencyTrend_PerSrcNamespaceWarning",
121-
"IngressLatencyTrend_PerSrcNamespaceInfo",
120+
"IngressHTTPLatencyTrend_PerSrcNamespaceWarning",
121+
"IngressHTTPLatencyTrend_PerSrcNamespaceInfo",
122122
"NetObservNoFlows",
123123
}, allNames(rules))
124124
assert.Contains(t, rules[0].Annotations["description"], "NetObserv is detecting more than 20% of packets dropped by the kernel [source namespace={{ $labels.namespace }}]")
125125
assert.Equal(t, `{"links":[{"name":"View runbook","url":"`+runbookURLBase+`/PacketDropsByKernel.md"}],"namespaceLabels":["namespace"],"threshold":"20","unit":"%"}`, rules[0].Annotations["netobserv_io_network_health"])
126126
assert.Contains(t, rules[3].Annotations["description"], "NetObserv is detecting more than 10% of packets dropped by the kernel [dest. namespace={{ $labels.namespace }}]")
127127
assert.Equal(t, `{"links":[{"name":"View runbook","url":"`+runbookURLBase+`/PacketDropsByKernel.md"}],"namespaceLabels":["namespace"],"threshold":"10","unit":"%"}`, rules[3].Annotations["netobserv_io_network_health"])
128128
assert.Contains(t, rules[4].Annotations["description"], "NetObserv is detecting more than 10% of packets dropped by the kernel [source node={{ $labels.node }}]")
129-
assert.Contains(t, rules[8].Annotations["description"], "node-exporter is detecting more than 5% of dropped packets [node={{ $labels.instance }}]")
129+
assert.Contains(t, rules[8].Annotations["description"], "node-exporter is reporting more than 5% of dropped packets [node={{ $labels.instance }}]")
130130
assert.Contains(t, rules[len(rules)-1].Annotations["description"], "NetObserv flowlogs-pipeline is not receiving any flow")
131131
}
132132

0 commit comments

Comments
 (0)