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