Skip to content

Commit 22277f1

Browse files
committed
Update
1 parent a0c1189 commit 22277f1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

test/e2e/gitopsservice_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ var _ = Describe("GitOpsServiceController", func() {
492492
Context("Validate revoking permissions by label", func() {
493493
argocdNonDefaultNamespace := "argocd-non-default-source"
494494
argocdTargetNamespace := "argocd-target"
495-
argocdNonDefaultNamespaceInstanceName := "argocd-non-default-namespace-instance"
495+
argocdNonDefaultNamespaceInstanceName := "argocd-non-default-instance"
496496
resourceList := []helper.ResourceList{
497497
{
498498
Resource: &rbacv1.Role{},

test/openshift/e2e/ginkgo/parallel/1-061_validate_resource_tracking_method_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
6969
By("waiting for ArgoCD CR to be reconciled and the instance to be ready")
7070
Eventually(argoCD, "5m", "5s").Should(argocdFixture.BeAvailable())
7171

72-
By("verifying ArgoCD CR defaults to resourceTrackingMethod: label")
72+
By("verifying ArgoCD CR defaults to resourceTrackingMethod: annotation")
7373
argocdConfigMap := &corev1.ConfigMap{ObjectMeta: metav1.ObjectMeta{Name: "argocd-cm", Namespace: ns.Name}}
7474
Eventually(argocdConfigMap).Should(k8sFixture.ExistByName())
7575

76-
Eventually(argocdConfigMap).Should(configmapFixture.HaveStringDataKeyValue("application.resourceTrackingMethod", "label"))
76+
Eventually(argocdConfigMap).Should(configmapFixture.HaveStringDataKeyValue("application.resourceTrackingMethod", "annotation"))
7777

78-
By("verifying we can switch ArgoCD CR to resourceTrackingMethod: annotation, and the ConfigMap will be updated")
78+
By("verifying we can switch ArgoCD CR to resourceTrackingMethod: label, and the ConfigMap will be updated")
7979
argocdFixture.Update(argoCD, func(ac *argov1beta1api.ArgoCD) {
80-
argoCD.Spec.ResourceTrackingMethod = "annotation"
80+
argoCD.Spec.ResourceTrackingMethod = "label"
8181
})
8282

83-
Eventually(argocdConfigMap).Should(configmapFixture.HaveStringDataKeyValue("application.resourceTrackingMethod", "annotation"))
83+
Eventually(argocdConfigMap).Should(configmapFixture.HaveStringDataKeyValue("application.resourceTrackingMethod", "label"))
8484

8585
By("verifying we can switch ArgoCD CR to resourceTrackingMethod: annotation+label, and the ConfigMap will be updated")
8686

@@ -95,7 +95,7 @@ var _ = Describe("GitOps Operator Parallel E2E Tests", func() {
9595
argoCD.Spec.ResourceTrackingMethod = "invalid_method"
9696
})
9797

98-
Eventually(argocdConfigMap).Should(configmapFixture.HaveStringDataKeyValue("application.resourceTrackingMethod", "label"))
98+
Eventually(argocdConfigMap).Should(configmapFixture.HaveStringDataKeyValue("application.resourceTrackingMethod", "annotation"))
9999

100100
})
101101

test/openshift/e2e/ginkgo/parallel/1-083_validate_resource_customization_subkeys_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ spec:
157157
expectedDataFieldYaml := `
158158
admin.enabled: "true"
159159
application.instanceLabelKey: app.kubernetes.io/instance
160-
application.resourceTrackingMethod: label
160+
application.resourceTrackingMethod: annotation
161161
ga.anonymizeusers: "false"
162162
ga.trackingid: ""
163163
help.chatText: ""

0 commit comments

Comments
 (0)