Skip to content

Commit fff1896

Browse files
catalogd: e2e metrics: Do not use a fixed namespace for metrics tests (#1561)
Follow op-con's lead on specifying a metrics address Signed-off-by: Todd Short <[email protected]>
1 parent 8352719 commit fff1896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

catalogd/test/e2e/metrics_endpoint_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func TestCatalogdMetricsExportedEndpoint(t *testing.T) {
108108
require.NoError(t, waitErr, "Error waiting for curl pod to be ready: %s", string(waitOutput))
109109

110110
t.Log("Validating the metrics endpoint")
111-
metricsURL := "https://catalogd-service.olmv1-system.svc.cluster.local:7443/metrics"
111+
metricsURL := "https://catalogd-service." + namespace + ".svc.cluster.local:7443/metrics"
112112
curlCmd := exec.Command(client, "exec", curlPod, "-n", namespace, "--",
113113
"curl", "-v", "-k", "-H", "Authorization: Bearer "+token, metricsURL)
114114
output, err = curlCmd.CombinedOutput()

0 commit comments

Comments
 (0)