Skip to content

Commit

Permalink
Expose error if bundle not ready
Browse files Browse the repository at this point in the history
This should ease troubleshooting of flaky tests for deploying bundles
from `GitRepo`s with multiple paths.
  • Loading branch information
weyfonk committed Jun 25, 2024
1 parent 4b70ce7 commit 3ca322f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions e2e/single-cluster/single_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,19 @@ var _ = Describe("Single Cluster Deployments", func() {
ContainSubstring("multiple-paths-multiple-paths-service"),
))

Eventually(func() bool {
out, err := k.Get("bundle", "multiple-paths-multiple-paths-config", "-n", "fleet-local", "-o", "jsonpath='{.status.summary}'")
Expect(err).ToNot(HaveOccurred(), out)
return strings.Contains(out, "\"ready\":1")
}).Should(BeTrue())
Eventually(func(g Gomega) {
out, err := k.Get(
"bundle",
"multiple-paths-multiple-paths-config",
"-n",
"fleet-local",
"-o",
"jsonpath='{.status.summary}'",
)
g.Expect(err).ToNot(HaveOccurred(), out)

g.Expect(out).To(ContainSubstring(`"ready":1`))
}).Should(Succeed())

Eventually(func() bool {
out, err := k.Get("bundle", "multiple-paths-multiple-paths-service", "-n", "fleet-local", "-o", "jsonpath='{.status.summary}'")
Expand Down

0 comments on commit 3ca322f

Please sign in to comment.