Skip to content

Commit b819423

Browse files
committed
fix the prometheus test
Signed-off-by: Varsha B <vab@redhat.com>
1 parent 16742b3 commit b819423

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/openshift/e2e/ginkgo/parallel/1-104_validate_prometheus_alert_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
2828
return
2929
}
3030

31+
var installationNamespace = fixture.GetInstallationNamespace()
32+
3133
sm := &monitoringv1.ServiceMonitor{
3234
ObjectMeta: metav1.ObjectMeta{
3335
Name: "openshift-gitops-operator-metrics-monitor",
34-
Namespace: "openshift-gitops-operator",
36+
Namespace: installationNamespace,
3537
},
3638
}
3739
Eventually(sm).Should(k8sFixture.ExistByName())
@@ -57,7 +59,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
5759
Key: "service-ca.crt",
5860
},
5961
},
60-
ServerName: "openshift-gitops-operator-metrics-service.openshift-gitops-operator.svc",
62+
ServerName: "openshift-gitops-operator-metrics-service." + installationNamespace + ".svc",
6163
},
6264
},
6365
}}))

0 commit comments

Comments
 (0)