Skip to content

Commit 3649c9d

Browse files
committed
test changes
Signed-off-by: Varsha B <[email protected]>
1 parent fe7e0e4 commit 3649c9d

7 files changed

+11
-11
lines changed

test/openshift/e2e/ginkgo/parallel/1-051-validate_csv_permissions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
4747
}
4848

4949
By("run oc command to verify our ability to delete resourcequotas")
50-
res, err := osFixture.ExecCommand("oc", "auth", "can-i", "delete", "resourcequotas", "-n", "openshift-gitops", "--as", "system:serviceaccount:openshift-gitops-operator:openshift-gitops-operator-controller-manager")
50+
res, err := osFixture.ExecCommand("oc", "auth", "can-i", "delete", "resourcequotas", "-n", "openshift-gitops", "--as", "system:serviceaccount:"+fixture.GetInstallationNamespace()+":openshift-gitops-operator-controller-manager")
5151
Expect(err).ToNot(HaveOccurred())
5252
Expect(strings.TrimSpace(res)).To(Equal("yes"))
5353

test/openshift/e2e/ginkgo/parallel/1-077_validate_disable_dex_removed_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
6666

6767
} else {
6868
subscription := &olmv1alpha1.Subscription{
69-
ObjectMeta: metav1.ObjectMeta{Name: "openshift-gitops-operator", Namespace: "openshift-gitops-operator"},
69+
ObjectMeta: metav1.ObjectMeta{Name: "openshift-gitops-operator", Namespace: fixture.GetInstallationNamespace()},
7070
}
7171
Expect(subscription).Should(k8sFixture.ExistByName())
7272

@@ -80,7 +80,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
8080

8181
csv := &olmv1alpha1.ClusterServiceVersion{ObjectMeta: metav1.ObjectMeta{
8282
Name: operatorNameVersion,
83-
Namespace: "openshift-gitops-operator",
83+
Namespace: fixture.GetInstallationNamespace(),
8484
}}
8585
Expect(k8sClient.Get(ctx, client.ObjectKeyFromObject(csv), csv)).To(Succeed())
8686

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
5757
operatorControllerDepl := &appsv1.Deployment{
5858
ObjectMeta: metav1.ObjectMeta{
5959
Name: "openshift-gitops-operator-controller-manager",
60-
Namespace: "openshift-gitops-operator", // The original kuttl test was 'openshift-operators'
60+
Namespace: fixture.GetInstallationNamespace(), // The original kuttl test was 'openshift-operators'
6161
},
6262
}
6363
Eventually(operatorControllerDepl).Should(k8sFixture.ExistByName())
@@ -90,7 +90,7 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
9090
Eventually(openshiftGitopsArgoCD, "3m", "5s").Should(k8sFixture.ExistByName())
9191
Eventually(openshiftGitopsArgoCD, "5m", "5s").Should(argocdFixture.BeAvailable())
9292

93-
By("verifying deployment and statefulset have expected number of replicas, including the repo server which should have 2")
93+
By("verifying deployment and statefulset have expected number of replicas")
9494
deploymentsToVerify := []string{
9595
"openshift-gitops-server",
9696
"openshift-gitops-redis",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
2121

22-
Context("1-035-validate_argocd_secret_repopulate", func() {
22+
Context("1-035_validate_argocd_secret_repopulate", func() {
2323

2424
var (
2525
ctx context.Context
@@ -71,7 +71,7 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
7171
depl := &appsv1.Deployment{
7272
ObjectMeta: metav1.ObjectMeta{
7373
Name: "openshift-gitops-operator-controller-manager",
74-
Namespace: "openshift-gitops-operator",
74+
Namespace: fixture.GetInstallationNamespace(),
7575
},
7676
}
7777
Eventually(depl, "1m", "5s").Should(deploymentFixture.HaveReadyReplicas(1))

test/openshift/e2e/ginkgo/sequential/1-056_validate_managed-by_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
3434
})
3535

3636
AfterEach(func() {
37-
fixture.OutputDebugOnFail("test-1-56-target", "test-1-56-custom", "test-1-56-target-2", "test-1-56-custom-2", "openshift-gitops-operator")
37+
fixture.OutputDebugOnFail("test-1-56-target", "test-1-56-custom", "test-1-56-target-2", "test-1-56-custom-2", fixture.GetInstallationNamespace())
3838
})
3939

4040
It("verifies that managed-by works as expected and that REMOVE_MANAGED_BY_LABEL_ON_ARGOCD_DELETION will remove managed-by label when the related ArgoCD instance is deleted", func() {

test/openshift/e2e/ginkgo/sequential/1-085_validate_dynamic_plugin_installation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
4949
// Find CSV
5050
var csv *olmv1alpha1.ClusterServiceVersion
5151
var csvList olmv1alpha1.ClusterServiceVersionList
52-
Expect(k8sClient.List(ctx, &csvList, client.InNamespace("openshift-gitops-operator"))).To(Succeed())
52+
Expect(k8sClient.List(ctx, &csvList, client.InNamespace(fixture.GetInstallationNamespace()))).To(Succeed())
5353

5454
for idx := range csvList.Items {
5555
idxCSV := csvList.Items[idx]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
2828
sm := &monitoringv1.ServiceMonitor{
2929
ObjectMeta: metav1.ObjectMeta{
3030
Name: "openshift-gitops-operator-metrics-monitor",
31-
Namespace: "openshift-gitops-operator",
31+
Namespace: fixture.GetInstallationNamespace(),
3232
},
3333
}
3434
Eventually(sm).Should(k8sFixture.ExistByName())
@@ -43,7 +43,7 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
4343
SafeTLSConfig: monitoringv1.SafeTLSConfig{
4444
CA: monitoringv1.SecretOrConfigMap{},
4545
Cert: monitoringv1.SecretOrConfigMap{},
46-
ServerName: "openshift-gitops-operator-metrics-service.openshift-gitops-operator.svc",
46+
ServerName: "openshift-gitops-operator-metrics-service." + fixture.GetInstallationNamespace() + ".svc",
4747
},
4848
CAFile: "/etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt",
4949
},

0 commit comments

Comments
 (0)