Skip to content

Commit 561ac03

Browse files
committed
Port Kuttl E2E tests to Ginkgo
Signed-off-by: Jonathan West <jonwest@redhat.com>
1 parent 5f6b402 commit 561ac03

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

test/openshift/e2e/ginkgo/fixture/fixture.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,17 @@ func OutputDebugOnFail(namespaces ...string) {
849849

850850
}
851851

852+
kubectlOutput, err := osFixture.ExecCommandWithOutputParam(false, "kubectl", "get", "argocds", "-A", "-o", "yaml")
853+
if err != nil {
854+
GinkgoWriter.Println("unable to output all argo cd statuses", err, kubectlOutput)
855+
} else {
856+
GinkgoWriter.Println("")
857+
GinkgoWriter.Println("----------------------------------------------------------------")
858+
GinkgoWriter.Println("'kubectl get argocds -A -o yaml':")
859+
GinkgoWriter.Println(kubectlOutput)
860+
GinkgoWriter.Println("----------------------------------------------------------------")
861+
}
862+
852863
}
853864

854865
func outputPodLog(podSubstring string) {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
3333
ctx = context.Background()
3434
})
3535

36+
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")
38+
})
39+
3640
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() {
3741

3842
By("creating two namespaces in managed-by relationship")

0 commit comments

Comments
 (0)