Skip to content
Snippets Groups Projects
Commit 3eec2b6d authored by Arthur Silva Sens's avatar Arthur Silva Sens Committed by GitHub
Browse files

Parallelize e2e tests


Signed-off-by: default avatarGitHub <noreply@github.com>
parent 167caa3b
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,7 @@ func TestQueryPrometheus(t *testing.T) { ...@@ -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) { ...@@ -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) { ...@@ -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) { ...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment