Skip to content

Commit 73e1785

Browse files
committed
get the installation ns
Signed-off-by: Varsha B <vab@redhat.com>
1 parent b819423 commit 73e1785

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

test/openshift/e2e/ginkgo/sequential/1-018_validate_disable_default_instance_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
114114

115115
fixture.SetEnvInOperatorSubscriptionOrDeployment("DISABLE_DEFAULT_ARGOCD_INSTANCE", "true")
116116

117+
installationNamespace := fixture.GetInstallationNamespace()
118+
117119
By("verifying operator restarts with DISABLE_DEFAULT_ARGOCD_INSTANCE set")
118120
operatorControllerDepl := &appsv1.Deployment{
119121
ObjectMeta: metav1.ObjectMeta{
120122
Name: "openshift-gitops-operator-controller-manager",
121-
Namespace: fixture.GetInstallationNamespace(), // The original kuttl test was 'openshift-operators'
123+
Namespace: installationNamespace, // The original kuttl test was 'openshift-operators'
122124
},
123125
}
124126
Eventually(operatorControllerDepl).Should(k8sFixture.ExistByName())

test/openshift/e2e/ginkgo/sequential/1-035_validate_argocd_secret_repopulate_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
6868
// Skip verifying operator deployment when we are running the operator locally
6969
By("verifying operator Deployment is ready")
7070

71+
installationNamespace := fixture.GetInstallationNamespace()
72+
7173
depl := &appsv1.Deployment{
7274
ObjectMeta: metav1.ObjectMeta{
7375
Name: "openshift-gitops-operator-controller-manager",
74-
Namespace: fixture.GetInstallationNamespace(),
76+
Namespace: installationNamespace,
7577
},
7678
}
7779
Eventually(depl, "1m", "5s").Should(deploymentFixture.HaveReadyReplicas(1))

0 commit comments

Comments
 (0)