This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch release-1.4.x in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit e25ac1c7bf42bd20a16aee270c4993dfbf8716ad Author: Antonin Stefanutti <anto...@stefanutti.fr> AuthorDate: Wed May 12 10:06:19 2021 +0200 chore(e2e): List Builds when dumping Namespace --- e2e/support/util/dump.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/e2e/support/util/dump.go b/e2e/support/util/dump.go index 8a456ad..f31ba9c 100644 --- a/e2e/support/util/dump.go +++ b/e2e/support/util/dump.go @@ -35,7 +35,6 @@ import ( // Dump prints all information about the given namespace to debug errors func Dump(ctx context.Context, c client.Client, ns string, t *testing.T) error { - t.Logf("-------------------- start dumping namespace %s --------------------\n", ns) camelClient, err := versioned.NewForConfig(c.GetConfig()) @@ -84,6 +83,19 @@ func Dump(ctx context.Context, c client.Client, ns string, t *testing.T) error { t.Logf("---\n%s\n---\n", string(pdata)) } + builds, err := camelClient.CamelV1().Builds(ns).List(ctx, metav1.ListOptions{}) + if err != nil { + return err + } + t.Logf("Found %d Builds:\n", len(builds.Items)) + for _, build := range builds.Items { + data, err := kubernetes.ToYAML(&build) + if err != nil { + return err + } + t.Logf("---\n%s\n---\n", string(data)) + } + cms, err := c.CoreV1().ConfigMaps(ns).List(ctx, metav1.ListOptions{}) if err != nil { return err