chore: helm golden file test log output on failure (#12661)

Debugging this is hard without the actual helm error
This commit is contained in:
Steven Masley 2024-03-19 11:01:54 -05:00 committed by GitHub
parent 23e3e4ce58
commit 00283d1f8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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()