@ -38,7 +38,7 @@ const subChartValuesDir = "rules/testdata/withsubchart"
const malformedTemplate = "rules/testdata/malformed-template"
func TestBadChart ( t * testing . T ) {
m := All ( badChartDir , values , namespace , strict ). Messages
m := All ( badChartDir , values , namespace , strict , false ). Messages
if len ( m ) != 8 {
t . Errorf ( "Number of errors %v" , len ( m ) )
t . Errorf ( "All didn't fail with expected errors, got %#v" , m )
@ -82,7 +82,7 @@ func TestBadChart(t *testing.T) {
}
func TestInvalidYaml ( t * testing . T ) {
m := All ( badYamlFileDir , values , namespace , strict ). Messages
m := All ( badYamlFileDir , values , namespace , strict , false ). Messages
if len ( m ) != 1 {
t . Fatalf ( "All didn't fail with expected errors, got %#v" , m )
}
@ -92,7 +92,7 @@ func TestInvalidYaml(t *testing.T) {
}
func TestBadValues ( t * testing . T ) {
m := All ( badValuesFileDir , values , namespace , strict ). Messages
m := All ( badValuesFileDir , values , namespace , strict , false ). Messages
if len ( m ) < 1 {
t . Fatalf ( "All didn't fail with expected errors, got %#v" , m )
}
@ -102,7 +102,7 @@ func TestBadValues(t *testing.T) {
}
func TestGoodChart ( t * testing . T ) {
m := All ( goodChartDir , values , namespace , strict ). Messages
m := All ( goodChartDir , values , namespace , strict , false ). Messages
if len ( m ) != 0 {
t . Error ( "All returned linter messages when it shouldn't have" )
for i , msg := range m {
@ -126,7 +126,7 @@ func TestHelmCreateChart(t *testing.T) {
// Note: we test with strict=true here, even though others have
// strict = false.
m := All ( createdChart , values , namespace , true ). Messages
m := All ( createdChart , values , namespace , true , false ). Messages
if ll := len ( m ) ; ll != 1 {
t . Errorf ( "All should have had exactly 1 error. Got %d" , ll )
for i , msg := range m {
@ -140,7 +140,7 @@ func TestHelmCreateChart(t *testing.T) {
// lint ignores import-values
// See https://github.com/helm/helm/issues/9658
func TestSubChartValuesChart ( t * testing . T ) {
m := All ( subChartValuesDir , values , namespace , strict ). Messages
m := All ( subChartValuesDir , values , namespace , strict , false ). Messages
if len ( m ) != 0 {
t . Error ( "All returned linter messages when it shouldn't have" )
for i , msg := range m {
@ -156,7 +156,7 @@ func TestMalformedTemplate(t *testing.T) {
ch := make ( chan int , 1 )
var m [ ] support . Message
go func ( ) {
m = All ( malformedTemplate , values , namespace , strict ). Messages
m = All ( malformedTemplate , values , namespace , strict , false ). Messages
ch <- 1
} ( )
select {