|
|
@ -31,6 +31,8 @@ var (
|
|
|
|
chartMissingManifest = "../../cmd/helm/testdata/testcharts/chart-missing-manifest"
|
|
|
|
chartMissingManifest = "../../cmd/helm/testdata/testcharts/chart-missing-manifest"
|
|
|
|
chartSchema = "../../cmd/helm/testdata/testcharts/chart-with-schema"
|
|
|
|
chartSchema = "../../cmd/helm/testdata/testcharts/chart-with-schema"
|
|
|
|
chartSchemaNegative = "../../cmd/helm/testdata/testcharts/chart-with-schema-negative"
|
|
|
|
chartSchemaNegative = "../../cmd/helm/testdata/testcharts/chart-with-schema-negative"
|
|
|
|
|
|
|
|
chart1MultipleChartLint = "../../cmd/helm/testdata/testcharts/multiplecharts-lint-chart-1"
|
|
|
|
|
|
|
|
chart2MultipleChartLint = "../../cmd/helm/testdata/testcharts/multiplecharts-lint-chart-2"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func TestLintChart(t *testing.T) {
|
|
|
|
func TestLintChart(t *testing.T) {
|
|
|
@ -56,3 +58,12 @@ func TestLintChart(t *testing.T) {
|
|
|
|
t.Error(err)
|
|
|
|
t.Error(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func TestLint_MultipleCharts(t *testing.T) {
|
|
|
|
|
|
|
|
testCharts := []string{chart2MultipleChartLint, chart1MultipleChartLint}
|
|
|
|
|
|
|
|
testLint := NewLint()
|
|
|
|
|
|
|
|
if result := testLint.Run(testCharts, values); len(result.Errors) == 0 {
|
|
|
|
|
|
|
|
t.Error(result.Errors)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|