mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-23 21:21:11 +02:00
Merge pull request #1421 from prometheus-operator/as/parallelize-e2e
This commit is contained in:
commit
2c5bdfe21c
@ -121,6 +121,7 @@ func TestQueryPrometheus(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestDroppedMetrics(t *testing.T) {
|
func TestDroppedMetrics(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
// query metadata for all metrics and their metadata
|
// query metadata for all metrics and their metadata
|
||||||
md, err := promClient.metadata("{job=~\".+\"}")
|
md, err := promClient.metadata("{job=~\".+\"}")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -142,6 +143,7 @@ func TestDroppedMetrics(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestTargetsScheme(t *testing.T) {
|
func TestTargetsScheme(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
// query targets for all endpoints
|
// query targets for all endpoints
|
||||||
tgs, err := promClient.targets()
|
tgs, err := promClient.targets()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -169,6 +171,7 @@ func TestTargetsScheme(t *testing.T) {
|
|||||||
// trigger "many-to-many" evaluation errors when multiple kube-state-metrics
|
// trigger "many-to-many" evaluation errors when multiple kube-state-metrics
|
||||||
// instances are running.
|
// instances are running.
|
||||||
func TestFailedRuleEvaluations(t *testing.T) {
|
func TestFailedRuleEvaluations(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
// Scale kube-state-metrics to 2 replicas.
|
// Scale kube-state-metrics to 2 replicas.
|
||||||
kClient := promClient.kubeClient
|
kClient := promClient.kubeClient
|
||||||
|
|
||||||
@ -279,6 +282,7 @@ func TestFailedRuleEvaluations(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGrafana(t *testing.T){
|
func TestGrafana(t *testing.T){
|
||||||
|
t.Parallel()
|
||||||
kClient := promClient.kubeClient
|
kClient := promClient.kubeClient
|
||||||
|
|
||||||
err := wait.Poll(30*time.Second, 5*time.Minute, func() (bool, error) {
|
err := wait.Poll(30*time.Second, 5*time.Minute, func() (bool, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user