|
|
|
@ -87,6 +87,9 @@ func TestCoalesceValues(t *testing.T) {
|
|
|
|
|
&chart.Chart{
|
|
|
|
|
Metadata: &chart.Metadata{Name: "ahab"},
|
|
|
|
|
Values: map[string]interface{}{
|
|
|
|
|
"global": map[string]interface{}{
|
|
|
|
|
"nested": map[string]interface{}{"foo": "bar"},
|
|
|
|
|
},
|
|
|
|
|
"scope": "ahab",
|
|
|
|
|
"name": "ahab",
|
|
|
|
|
"boat": true,
|
|
|
|
@ -135,9 +138,11 @@ func TestCoalesceValues(t *testing.T) {
|
|
|
|
|
{"{{.pequod.ahab.scope}}", "whale"},
|
|
|
|
|
{"{{.pequod.ahab.nested.foo}}", "true"},
|
|
|
|
|
{"{{.pequod.ahab.global.name}}", "Ishmael"},
|
|
|
|
|
{"{{.pequod.ahab.global.nested.foo}}", "bar"},
|
|
|
|
|
{"{{.pequod.ahab.global.subject}}", "Queequeg"},
|
|
|
|
|
{"{{.pequod.ahab.global.harpooner}}", "Tashtego"},
|
|
|
|
|
{"{{.pequod.global.name}}", "Ishmael"},
|
|
|
|
|
{"{{.pequod.global.nested.foo}}", "<no value>"},
|
|
|
|
|
{"{{.pequod.global.subject}}", "Queequeg"},
|
|
|
|
|
{"{{.spouter.global.name}}", "Ishmael"},
|
|
|
|
|
{"{{.spouter.global.harpooner}}", "<no value>"},
|
|
|
|
|