MCPcopy
hub / github.com/helm/helm / TestValidateValuesFileWellFormed

Function TestValidateValuesFileWellFormed

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

Source from the content-addressed store, hash-verified

62}
63
64func TestValidateValuesFileWellFormed(t *testing.T) {
65 badYaml := `
66 not:well[]{}formed
67 `
68 tmpdir := ensure.TempFile(t, "values.yaml", []byte(badYaml))
69 valfile := filepath.Join(tmpdir, "values.yaml")
70 if err := validateValuesFile(valfile, map[string]any{}, false); err == nil {
71 t.Fatal("expected values file to fail parsing")
72 }
73}
74
75func TestValidateValuesFileSchema(t *testing.T) {
76 yaml := "username: admin\npassword: swordfish"

Callers

nothing calls this directly

Calls 3

TempFileFunction · 0.92
FatalMethod · 0.80
validateValuesFileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…