From 04eca0b0e989a7f73a60f9583158e01bfade9d1f Mon Sep 17 00:00:00 2001 From: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Date: Thu, 9 Jan 2025 20:47:56 +0000 Subject: [PATCH] catalogd: e2e metrics: Do not use a fixed namespace for metrics tests Follow op-con's lead on specifying a metrics address Signed-off-by: Todd Short --- catalogd/test/e2e/metrics_endpoint_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogd/test/e2e/metrics_endpoint_test.go b/catalogd/test/e2e/metrics_endpoint_test.go index 803ffaf28..f777a4b9a 100644 --- a/catalogd/test/e2e/metrics_endpoint_test.go +++ b/catalogd/test/e2e/metrics_endpoint_test.go @@ -108,7 +108,7 @@ func TestCatalogdMetricsExportedEndpoint(t *testing.T) { require.NoError(t, waitErr, "Error waiting for curl pod to be ready: %s", string(waitOutput)) t.Log("Validating the metrics endpoint") - metricsURL := "https://catalogd-service.olmv1-system.svc.cluster.local:7443/metrics" + metricsURL := "https://catalogd-service." + namespace + ".svc.cluster.local:7443/metrics" curlCmd := exec.Command(client, "exec", curlPod, "-n", namespace, "--", "curl", "-v", "-k", "-H", "Authorization: Bearer "+token, metricsURL) output, err = curlCmd.CombinedOutput()