MCPcopy
hub / github.com/helm/helm / TestValidateValuesFileSchemaOverrides

Function TestValidateValuesFileSchemaOverrides

pkg/chart/v2/lint/rules/values_test.go:116–128  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

114}
115
116func TestValidateValuesFileSchemaOverrides(t *testing.T) {
117 yaml := "username: admin"
118 overrides := map[string]any{
119 "password": "swordfish",
120 }
121 tmpdir := ensure.TempFile(t, "values.yaml", []byte(yaml))
122 createTestingSchema(t, tmpdir)
123
124 valfile := filepath.Join(tmpdir, "values.yaml")
125 if err := validateValuesFile(valfile, overrides, false); err != nil {
126 t.Fatalf("Failed validation with %s", err)
127 }
128}
129
130func TestValidateValuesFile(t *testing.T) {
131 tests := []struct {

Callers

nothing calls this directly

Calls 4

TempFileFunction · 0.92
FatalfMethod · 0.80
createTestingSchemaFunction · 0.70
validateValuesFileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…