Skip to content

Commit

Permalink
e2e: wait for deployments before getting logs
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond committed Feb 21, 2025
1 parent b5d97fb commit 6873bcc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/e2e/startup/startup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ var _ = Describe("Various Startup Configurations", Ordered, func() {
Eventually(func() error {
return tests.AllPodsUp(tc.KubeConfigFile)
}, "360s", "5s").Should(Succeed())
Eventually(func() error {
return tests.CheckDeployments([]string{"coredns", "local-path-provisioner", "metrics-server"}, tc.KubeConfigFile)
}, "300s", "10s").Should(Succeed())
e2e.DumpPods(tc.KubeConfigFile)
})

Expand Down Expand Up @@ -187,6 +190,9 @@ var _ = Describe("Various Startup Configurations", Ordered, func() {
Eventually(func() error {
return tests.AllPodsUp(tc.KubeConfigFile)
}, "360s", "5s").Should(Succeed())
Eventually(func() error {
return tests.CheckDefaultDeployments(tc.KubeConfigFile)
}, "300s", "10s").Should(Succeed())
e2e.DumpPods(tc.KubeConfigFile)
})
It("Kills the cluster", func() {
Expand Down Expand Up @@ -220,6 +226,9 @@ var _ = Describe("Various Startup Configurations", Ordered, func() {
Eventually(func() error {
return tests.AllPodsUp(tc.KubeConfigFile)
}, "360s", "5s").Should(Succeed())
Eventually(func() error {
return tests.CheckDefaultDeployments(tc.KubeConfigFile)
}, "300s", "10s").Should(Succeed())
e2e.DumpPods(tc.KubeConfigFile)
})
It("Kills the cluster", func() {
Expand Down Expand Up @@ -253,6 +262,9 @@ var _ = Describe("Various Startup Configurations", Ordered, func() {
Eventually(func() error {
return tests.AllPodsUp(tc.KubeConfigFile)
}, "360s", "5s").Should(Succeed())
Eventually(func() error {
return tests.CheckDefaultDeployments(tc.KubeConfigFile)
}, "300s", "10s").Should(Succeed())
e2e.DumpPods(tc.KubeConfigFile)
})

Expand Down

0 comments on commit 6873bcc

Please sign in to comment.