Skip to content

Commit eb18ac3

Browse files
committed
fix: e2e test (#119)
Signed-off-by: Mike Ng <[email protected]>
1 parent 19005cb commit eb18ac3

File tree

4 files changed

+3
-31
lines changed

4 files changed

+3
-31
lines changed

charts/argocd-agent-addon/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ appVersion: 0.1.0
33
description: Argo CD Agent Addon for Open Cluster Management
44
name: argocd-agent-addon
55
type: application
6-
version: 0.21.0
6+
version: 0.22.0

internal/addon/charts/argocd-agent-addon/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: argocd-agent-addon
33
description: Argo CD Agent Addon
44
type: application
5-
version: 0.21.0
6-
appVersion: "0.21.0"
5+
version: 0.22.0
6+
appVersion: "0.22.0"

test/e2e/addon_e2e_deploy_test.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -301,20 +301,6 @@ var _ = Describe("ArgoCD Agent Addon Deployment E2E", Label("deploy"), Ordered,
301301
g.Expect(err).NotTo(HaveOccurred())
302302
g.Expect(output).To(Equal("Running"))
303303
}).Should(Succeed())
304-
305-
By("checking ArgoCD principal pod logs for event processing")
306-
var principalPodName string
307-
Eventually(func(g Gomega) {
308-
cmd := exec.Command("kubectl", "--context", hubContext,
309-
"get", "pods",
310-
"-n", argoCDNamespace,
311-
"-l", "app.kubernetes.io/name=argocd-agent-principal",
312-
"-o", "jsonpath={.items[0].metadata.name}")
313-
output, err := utils.Run(cmd)
314-
g.Expect(err).NotTo(HaveOccurred())
315-
g.Expect(output).NotTo(BeEmpty())
316-
principalPodName = output
317-
}).Should(Succeed())
318304
})
319305

320306
It("should reconcile GitOpsCluster and create ManagedClusterAddOn", func() {

test/e2e/addon_e2e_full_test.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -262,20 +262,6 @@ var _ = Describe("ArgoCD Agent Addon Full E2E", Label("full"), Ordered, func() {
262262
g.Expect(err).NotTo(HaveOccurred())
263263
g.Expect(output).To(Equal("Running"))
264264
}).Should(Succeed())
265-
266-
By("checking ArgoCD principal pod logs for event processing")
267-
var principalPodName string
268-
Eventually(func(g Gomega) {
269-
cmd := exec.Command("kubectl", "--context", hubContext,
270-
"get", "pods",
271-
"-n", argoCDNamespace,
272-
"-l", "app.kubernetes.io/name=argocd-agent-principal",
273-
"-o", "jsonpath={.items[0].metadata.name}")
274-
output, err := utils.Run(cmd)
275-
g.Expect(err).NotTo(HaveOccurred())
276-
g.Expect(output).NotTo(BeEmpty())
277-
principalPodName = output
278-
}).Should(Succeed())
279265
})
280266

281267
It("should reconcile GitOpsCluster and create ManagedClusterAddOn", func() {

0 commit comments

Comments
 (0)