From 00283d1f8b21f47c4a6b7b944809883e980f7ebe Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Tue, 19 Mar 2024 11:01:54 -0500 Subject: [PATCH] chore: helm golden file test log output on failure (#12661) Debugging this is hard without the actual helm error --- helm/provisioner/tests/chart_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helm/provisioner/tests/chart_test.go b/helm/provisioner/tests/chart_test.go index 9bef79109f..78567b5b48 100644 --- a/helm/provisioner/tests/chart_test.go +++ b/helm/provisioner/tests/chart_test.go @@ -136,7 +136,9 @@ func TestUpdateGoldenFiles(t *testing.T) { valuesPath := tc.valuesFilePath() templateOutput, err := runHelmTemplate(t, helmPath, "..", valuesPath) - + if err != nil { + t.Logf("Command output:\n%s", templateOutput) + } require.NoError(t, err, "failed to run `helm template -f %q`", valuesPath) goldenFilePath := tc.goldenFilePath()