Skip to content

Commit a0d9ff2

Browse files
added a case that checks a query
1 parent a0d042d commit a0d9ff2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/extended/prometheus/prometheus.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,18 @@ var _ = g.Describe("[Feature:Prometheus][Conformance] Prometheus", func() {
182182
}
183183
runQueries(tests, oc, ns, execPodName, url, bearerToken)
184184
})
185+
g.It("should be able to get the sdn ovs flows", func() {
186+
oc.SetupProject()
187+
ns := oc.Namespace()
188+
execPodName := e2e.CreateExecPodOrFail(oc.AdminKubeClient(), ns, "execpod", func(pod *v1.Pod) { pod.Spec.Containers[0].Image = "centos:7" })
189+
defer func() { oc.AdminKubeClient().CoreV1().Pods(ns).Delete(execPodName, metav1.NewDeleteOptions(1)) }()
190+
191+
tests := map[string][]metricTest{
192+
//something
193+
`openshift_sdn_ovs_flows`: {metricTest{greaterThanEqual: true, value: 1}},
194+
}
195+
runQueries(tests, oc, ns, execPodName, url, bearerToken)
196+
})
185197
})
186198
})
187199

0 commit comments

Comments
 (0)