Skip to content

Commit 1611bce

Browse files
committed
Log additional debug logs on failure of 1-040
Signed-off-by: Jonathan West <jonwest@redhat.com>
1 parent 82acfc6 commit 1611bce

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,10 @@ func WaitForAllDeploymentsInTheNamespaceToBeReady(ns string, k8sClient client.Cl
634634

635635
}, "3m", "1s").Should(BeTrue())
636636

637+
// The above logic will successfully wait for Deployments to be ready. However, this does not mean that the operator's controller logic has completed it's initial cluster reconciliation logic (starting a watch then reconciling existing resources)
638+
// - I'm not aware of a way to detect when this has completed, so instead I am inserting a 15 second pause.
639+
// - If anyone has a better way of doing this, let us know.
640+
time.Sleep(10 * time.Second)
637641
}
638642

639643
func WaitForAllStatefulSetsInTheNamespaceToBeReady(ns string, k8sClient client.Client) {

test/openshift/e2e/ginkgo/sequential/1-040_validate_quoted_RBAC_group_names_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
1515
fixture.EnsureSequentialCleanSlate()
1616
})
1717

18+
AfterEach(func() {
19+
fixture.OutputDebugOnFail()
20+
})
21+
1822
It("creates a project role 'somerole' and group claim, and verifies group claim contains the expected data", func() {
1923

2024
By("logging in to Argo CD instance")

0 commit comments

Comments
 (0)