Skip to content

Commit 78903bb

Browse files
committed
test update:1-058_validate_notifications_source_namespaces_test
Signed-off-by: NAVEENA S <nas@redhat.com>
1 parent 5268510 commit 78903bb

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

test/openshift/e2e/ginkgo/sequential/1-058_validate_notifications_source_namespaces_test.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ import (
2929
argov1alpha1api "github.com/argoproj-labs/argocd-operator/api/v1alpha1"
3030
argov1beta1api "github.com/argoproj-labs/argocd-operator/api/v1beta1"
3131
"github.com/argoproj-labs/argocd-operator/common"
32-
"github.com/argoproj-labs/argocd-operator/tests/ginkgo/fixture"
33-
argocdFixture "github.com/argoproj-labs/argocd-operator/tests/ginkgo/fixture/argocd"
34-
k8sFixture "github.com/argoproj-labs/argocd-operator/tests/ginkgo/fixture/k8s"
35-
namespaceFixture "github.com/argoproj-labs/argocd-operator/tests/ginkgo/fixture/namespace"
36-
fixtureUtils "github.com/argoproj-labs/argocd-operator/tests/ginkgo/fixture/utils"
32+
"github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture"
33+
argocdFixture "github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/argocd"
34+
k8sFixture "github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/k8s"
35+
namespaceFixture "github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/namespace"
36+
fixtureUtils "github.com/redhat-developer/gitops-operator/test/openshift/e2e/ginkgo/fixture/utils"
3737

3838
"sigs.k8s.io/controller-runtime/pkg/client"
3939
)
@@ -49,6 +49,7 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
4949

5050
BeforeEach(func() {
5151
fixture.EnsureSequentialCleanSlate()
52+
fixture.SetEnvInOperatorSubscriptionOrDeployment("ARGOCD_CLUSTER_CONFIG_NAMESPACES", "openshift-gitops, argocd-e2e-cluster-config")
5253
k8sClient, _ = fixtureUtils.GetE2ETestKubeClient()
5354
ctx = context.Background()
5455
})
@@ -548,6 +549,9 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
548549
argocdNS, cleanupFunc := fixture.CreateNamespaceWithCleanupFunc("argocd-e2e-cluster-config")
549550
defer cleanupFunc()
550551

552+
By("adding namespace to ARGOCD_CLUSTER_CONFIG_NAMESPACES to make it cluster-scoped")
553+
fixture.SetEnvInOperatorSubscriptionOrDeployment("ARGOCD_CLUSTER_CONFIG_NAMESPACES", "openshift-gitops, argocd-e2e-cluster-config")
554+
551555
By("creating source namespace")
552556
sourceNS1, cleanupFunc1 := fixture.CreateNamespaceWithCleanupFunc("notif-source-ns-9")
553557
defer cleanupFunc1()

0 commit comments

Comments
 (0)