Skip to content

Commit

Permalink
Merge pull request #25328 from fedepaol/fixfailingtest
Browse files Browse the repository at this point in the history
Fix "should provide named network metrics" test.
  • Loading branch information
smarterclayton committed Jul 27, 2020
2 parents deadc8b + 880da84 commit a048cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/extended/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ var _ = g.Describe("[sig-instrumentation] Prometheus", func() {

g.By("verifying named metrics keys")
queries := map[string]bool{
fmt.Sprintf(`pod_network_name_info{pod="%s",namespace="%s",interface="eth0"} == 0`, execPod.Name, execPod.Namespace): true,
fmt.Sprintf(`pod_network_name_info{pod="%s",namespace="%s",network_name="secondary"} == 0`, execPod.Name, execPod.Namespace): true,
fmt.Sprintf(`pod_network_name_info{pod="%s",namespace="%s",interface="eth0"} == 0`, execPod.Name, execPod.Namespace): true,
fmt.Sprintf(`pod_network_name_info{pod="%s",namespace="%s",network_name="%s/secondary"} == 0`, execPod.Name, execPod.Namespace, ns): true,
}
helper.RunQueries(queries, oc, ns, execPod.Name, url, bearerToken)
})
Expand Down

0 comments on commit a048cb4

Please sign in to comment.