From f13fa07793bc89d6c557755d1cf3165e472fec59 Mon Sep 17 00:00:00 2001 From: Joe Julian Date: Fri, 7 Apr 2023 16:21:12 -0700 Subject: [PATCH] create failing test for quietly linting a chart that doesn't exist Signed-off-by: Joe Julian --- cmd/helm/lint_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/helm/lint_test.go b/cmd/helm/lint_test.go index ebea09bf0..314b54c35 100644 --- a/cmd/helm/lint_test.go +++ b/cmd/helm/lint_test.go @@ -53,6 +53,11 @@ func TestLintCmdWithQuietFlag(t *testing.T) { name: "lint chart with warning using --quiet flag", cmd: "lint --quiet testdata/testcharts/chart-with-only-crds", golden: "output/lint-quiet-with-warning.txt", + }, { + name: "lint non-existent chart using --quiet flag", + cmd: "lint --quiet thischartdoesntexist/", + golden: "", + wantError: true, }} runTestCmd(t, tests)