mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Test overriding a property in TestValues
This commit is contained in:
parent
dacc4013c1
commit
edd6fd7465
1 changed files with 17 additions and 0 deletions
|
|
@ -121,6 +121,23 @@ sailor: sinbad
|
|||
if vobj.String() != y {
|
||||
t.Errorf("Expected String() to be \n%s\nGot\n%s\n", y, out)
|
||||
}
|
||||
|
||||
// Combined case, overriding a property
|
||||
vals["sailor"] = "pisti"
|
||||
updated_yaml := `good: true
|
||||
port:
|
||||
destination: basrah
|
||||
source: baghdad
|
||||
sailor: pisti
|
||||
`
|
||||
new_out, err := vobj.yaml()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if string(new_out) != updated_yaml {
|
||||
t.Errorf("Expected YAML to be \n%s\nGot\n%s\n", updated_yaml, new_out)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
type nameTemplateTestCase struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue