From 5fed856dce9eb2170023f16c070e4d7b83693d4d Mon Sep 17 00:00:00 2001 From: machine424 Date: Thu, 25 Apr 2024 10:56:10 +0200 Subject: [PATCH] test --- .../monitoring/disruptionmetricsapi/monitortest.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/monitortests/monitoring/disruptionmetricsapi/monitortest.go b/pkg/monitortests/monitoring/disruptionmetricsapi/monitortest.go index 210be651bcb7..a7e8dcad0c43 100644 --- a/pkg/monitortests/monitoring/disruptionmetricsapi/monitortest.go +++ b/pkg/monitortests/monitoring/disruptionmetricsapi/monitortest.go @@ -11,7 +11,7 @@ import ( appsv1 "k8s.io/api/apps/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/labels" + // "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" @@ -70,8 +70,8 @@ func (w *availability) StartCollection(ctx context.Context, adminRESTConfig *res } disruptionBackedName := "metrics-api" - newConnectionTestName := "[sig-instrumentation] disruption/metrics-api connection/new should be available throughout the test" - reusedConnectionTestName := "[sig-instrumentation] disruption/metrics-api connection/reused should be available throughout the test" + newConnectionTestName := fmt.Sprintf("[sig-instrumentation] disruption/%s connection/new should be available throughout the test", disruptionBackedName) + reusedConnectionTestName := fmt.Sprintf("[sig-instrumentation] disruption/%s connection/reused should be available throughout the test", disruptionBackedName) // Ask for the metrics of the API backend Pods. u, err := url.Parse(fmt.Sprintf("/apis/metrics.k8s.io/v1beta1/namespaces/%s/pods", monitoringNamespace)) @@ -79,7 +79,9 @@ func (w *availability) StartCollection(ctx context.Context, adminRESTConfig *res return err } params := url.Values{ - "labelSelector": {labels.Set(deployment.Spec.Selector.MatchLabels).String()}, + // TODO test + "labelSelector": {"doesnt=exist"}, + // "labelSelector": {labels.Set(deployment.Spec.Selector.MatchLabels).String()}, // only interested in the availability. "limit": {"1"}, }