mirror of https://github.com/coder/coder.git
chore: helm golden file test log output on failure (#12661)
Debugging this is hard without the actual helm error
This commit is contained in:
parent
23e3e4ce58
commit
00283d1f8b
|
@ -136,7 +136,9 @@ func TestUpdateGoldenFiles(t *testing.T) {
|
||||||
|
|
||||||
valuesPath := tc.valuesFilePath()
|
valuesPath := tc.valuesFilePath()
|
||||||
templateOutput, err := runHelmTemplate(t, helmPath, "..", valuesPath)
|
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)
|
require.NoError(t, err, "failed to run `helm template -f %q`", valuesPath)
|
||||||
|
|
||||||
goldenFilePath := tc.goldenFilePath()
|
goldenFilePath := tc.goldenFilePath()
|
||||||
|
|
Loading…
Reference in New Issue