Contract: Render with Options.Root pointing at a non-existent directory surfaces a chart-load error from the Helm loader.
(t *testing.T)
| 105 | // Contract: Render with Options.Root pointing at a non-existent |
| 106 | // directory surfaces a chart-load error from the Helm loader. |
| 107 | func TestContract_Render_ChartLoadError(t *testing.T) { |
| 108 | bogus := filepath.Join(t.TempDir(), "no-such-chart") |
| 109 | _, err := Render(context.Background(), nil, Options{ |
| 110 | Offline: true, |
| 111 | Root: bogus, |
| 112 | TemplateFiles: []string{"templates/config.yaml"}, |
| 113 | }) |
| 114 | if err == nil { |
| 115 | t.Fatal("expected error for missing chart root") |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | // Contract: Render with a values file that does not exist surfaces a |
| 120 | // loadValues error naming the missing file. Confirms loadValues' |