(t *testing.T)
| 62 | } |
| 63 | |
| 64 | func 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 | |
| 75 | func TestValidateValuesFileSchema(t *testing.T) { |
| 76 | yaml := "username: admin\npassword: swordfish" |
nothing calls this directly
no test coverage detected
searching dependent graphs…