|
|
@ -29,6 +29,8 @@ var (
|
|
|
|
invalidArchivedChartPath = "../../cmd/helm/testdata/testcharts/invalidcompressedchart0.1.0.tgz"
|
|
|
|
invalidArchivedChartPath = "../../cmd/helm/testdata/testcharts/invalidcompressedchart0.1.0.tgz"
|
|
|
|
chartDirPath = "../../cmd/helm/testdata/testcharts/decompressedchart/"
|
|
|
|
chartDirPath = "../../cmd/helm/testdata/testcharts/decompressedchart/"
|
|
|
|
chartMissingManifest = "../../cmd/helm/testdata/testcharts/chart-missing-manifest"
|
|
|
|
chartMissingManifest = "../../cmd/helm/testdata/testcharts/chart-missing-manifest"
|
|
|
|
|
|
|
|
chartSchema = "../../cmd/helm/testdata/testcharts/chart-with-schema"
|
|
|
|
|
|
|
|
chartSchemaNegative = "../../cmd/helm/testdata/testcharts/chart-with-schema-negative"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func TestLintChart(t *testing.T) {
|
|
|
|
func TestLintChart(t *testing.T) {
|
|
|
@ -47,4 +49,10 @@ func TestLintChart(t *testing.T) {
|
|
|
|
if _, err := lintChart(chartMissingManifest, values, namespace, strict); err == nil {
|
|
|
|
if _, err := lintChart(chartMissingManifest, values, namespace, strict); err == nil {
|
|
|
|
t.Error("Expected a chart parsing error")
|
|
|
|
t.Error("Expected a chart parsing error")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if _, err := lintChart(chartSchema, values, namespace, strict); err != nil {
|
|
|
|
|
|
|
|
t.Error(err)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if _, err := lintChart(chartSchemaNegative, values, namespace, strict); err != nil {
|
|
|
|
|
|
|
|
t.Error(err)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|