1
0
mirror of synced 2026-02-25 09:46:55 +00:00

Dump debug info on e2e tests

Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
Matheus Pimenta
2026-02-24 09:15:52 +00:00
parent a6aefab55b
commit 7a8cf63623
7 changed files with 180 additions and 5 deletions

View File

@@ -34,6 +34,7 @@ import (
func TestFluxInstallation(t *testing.T) {
g := NewWithT(t)
ctx := context.TODO()
t.Cleanup(func() { dumpDiagnostics(t, ctx, "flux-system") })
g.Eventually(func() bool {
err := verifyGitAndKustomization(ctx, testEnv.Client, "flux-system", "flux-system")
if err != nil {
@@ -114,6 +115,7 @@ metadata:
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
g := NewWithT(t)
ctx := context.TODO()
ref := &sourcev1.GitRepositoryRef{
Branch: branchName,
}
@@ -143,6 +145,7 @@ metadata:
t.Logf("failed to delete resources in '%s' namespace: %s", tt.name, err)
}
})
t.Cleanup(func() { dumpDiagnostics(t, ctx, testID) })
g.Eventually(func() bool {
err := verifyGitAndKustomization(ctx, testEnv.Client, testID, testID)