(t *testing.T)
| 114 | } |
| 115 | |
| 116 | func 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 | |
| 130 | func TestValidateValuesFile(t *testing.T) { |
| 131 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…