Skip to content

Commit

Permalink
Add DumpPods logs
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Jan 30, 2025
1 parent 8504fab commit 9fecb3b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
8 changes: 5 additions & 3 deletions tests/e2e/embeddedmirror/embeddedmirror_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ var _ = Describe("Verify Create", Ordered, func() {
g.Expect(node.Status).Should(Equal("Ready"))
}
}, "620s", "5s").Should(Succeed())
e2e.DumpPods(tc.KubeConfigFile)

Eventually(tests.AllPodsUp(tc.KubeConfigFile), "620s", "5s").Should(Succeed())
e2e.DumpPods(tc.KubeConfigFile)
By("Fetching pod status")
Eventually(func() error {
e2e.DumpPods(tc.KubeConfigFile)
return tests.AllPodsUp(tc.KubeConfigFile)
}, "620s", "10s").Should(Succeed())
})
It("Should create and validate deployment with embedded registry mirror using image tag", func() {
res, err := e2e.RunCommand("kubectl create deployment my-webpage-1 --image=docker.io/library/nginx:1.25.3")
Expand Down
7 changes: 5 additions & 2 deletions tests/e2e/externalip/externalip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ var _ = Describe("Verify External-IP config", Ordered, func() {
})

It("Checks pod status", func() {
Eventually(tests.AllPodsUp(tc.KubeConfigFile), "620s", "5s").Should(Succeed())
e2e.DumpPods(tc.KubeConfigFile)
By("Fetching pod status")
Eventually(func() error {
e2e.DumpPods(tc.KubeConfigFile)
return tests.AllPodsUp(tc.KubeConfigFile)
}, "620s", "10s").Should(Succeed())
})
})
Context("Deploy workloads to check cluster connectivity of the nodes", func() {
Expand Down
7 changes: 5 additions & 2 deletions tests/e2e/privateregistry/privateregistry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ var _ = Describe("Verify Create", Ordered, func() {
}, "620s", "5s").Should(Succeed())
e2e.DumpPods(tc.KubeConfigFile)

Eventually(tests.AllPodsUp(tc.KubeConfigFile), "620s", "5s").Should(Succeed())
e2e.DumpPods(tc.KubeConfigFile)
By("Fetching pod status")
Eventually(func() error {
e2e.DumpPods(tc.KubeConfigFile)
return tests.AllPodsUp(tc.KubeConfigFile)
}, "620s", "10s").Should(Succeed())
})

It("Create new private registry", func() {
Expand Down

0 comments on commit 9fecb3b

Please sign in to comment.