@ -181,13 +181,13 @@ func TestProcessDependencyImportValues(t *testing.T) {
e [ "imported-chartA-B.SPextra5" ] = "k8s"
e [ "imported-chartA-B.SPextra5" ] = "k8s"
e [ "imported-chartA-B.SC1extra5" ] = "tiller"
e [ "imported-chartA-B.SC1extra5" ] = "tiller"
// These values are imported from the child chart to the parent. Imported
// These values are imported from the child chart to the parent. Parent
// values take precedence over those in the parent so these should be the
// values take precedence over imported values. This enables importing a
// values from the child char t.
// large section from a child chart and overriding a selection from i t.
e [ "overridden-chart1.SC1bool" ] = " tru e"
e [ "overridden-chart1.SC1bool" ] = " fals e"
e [ "overridden-chart1.SC1float" ] = "3.14 "
e [ "overridden-chart1.SC1float" ] = "3.14 1592 "
e [ "overridden-chart1.SC1int" ] = " 100 "
e [ "overridden-chart1.SC1int" ] = " 99 "
e [ "overridden-chart1.SC1string" ] = " dollywood "
e [ "overridden-chart1.SC1string" ] = " pollywog "
e [ "overridden-chart1.SPextra2" ] = "42"
e [ "overridden-chart1.SPextra2" ] = "42"
e [ "overridden-chartA.SCAbool" ] = "true"
e [ "overridden-chartA.SCAbool" ] = "true"
@ -196,17 +196,17 @@ func TestProcessDependencyImportValues(t *testing.T) {
e [ "overridden-chartA.SCAstring" ] = "jabberwocky"
e [ "overridden-chartA.SCAstring" ] = "jabberwocky"
e [ "overridden-chartA.SPextra4" ] = "true"
e [ "overridden-chartA.SPextra4" ] = "true"
// These values are imported from the child chart to the parent. Imported
// These values are imported from the child chart to the parent. Parent
// values take precedence over those in the parent so these should be the
// values take precedence over imported values. This enables importing a
// values from the child char t.
// large section from a child chart and overriding a selection from i t.
e [ "overridden-chartA-B.SCAbool" ] = "true"
e [ "overridden-chartA-B.SCAbool" ] = "true"
e [ "overridden-chartA-B.SCAfloat" ] = " 3.3 3"
e [ "overridden-chartA-B.SCAfloat" ] = " 41. 3"
e [ "overridden-chartA-B.SCAint" ] = " 555 "
e [ "overridden-chartA-B.SCAint" ] = " 808 "
e [ "overridden-chartA-B.SCAstring" ] = " wormwood "
e [ "overridden-chartA-B.SCAstring" ] = " jabberwocky "
e [ "overridden-chartA-B.SCBbool" ] = " tru e"
e [ "overridden-chartA-B.SCBbool" ] = " fals e"
e [ "overridden-chartA-B.SCBfloat" ] = " 0.25 "
e [ "overridden-chartA-B.SCBfloat" ] = " 1.99 "
e [ "overridden-chartA-B.SCBint" ] = " 98 "
e [ "overridden-chartA-B.SCBint" ] = " 77 "
e [ "overridden-chartA-B.SCBstring" ] = " murkwood "
e [ "overridden-chartA-B.SCBstring" ] = " jango "
e [ "overridden-chartA-B.SPextra6" ] = "111"
e [ "overridden-chartA-B.SPextra6" ] = "111"
e [ "overridden-chartA-B.SCAextra1" ] = "23"
e [ "overridden-chartA-B.SCAextra1" ] = "23"
e [ "overridden-chartA-B.SCBextra1" ] = "13"
e [ "overridden-chartA-B.SCBextra1" ] = "13"
@ -278,20 +278,20 @@ func TestProcessDependencyImportValuesMultiLevelPrecedence(t *testing.T) {
// The order of precedence should be:
// The order of precedence should be:
// 1. User specified values (e.g CLI)
// 1. User specified values (e.g CLI)
// 2. Imported values
// 2. Parent chart values
// 3. Parent chart values
// 3. Imported values
// 4. Sub-chart values
// 4. Sub-chart values
// The 4 app charts here deal with things differently:
// The 4 app charts here deal with things differently:
// - app1 has a port value set in the umbrella chart. It does not import any
// - app1 has a port value set in the umbrella chart. It does not import any
// values so the value from the umbrella chart should be used.
// values so the value from the umbrella chart should be used.
// - app2 has a value in the app chart and imports from the library. The
// - app2 has a value in the app chart and imports from the library. The
// library chart value should take precedence.
// app chart value should take precedence.
// - app3 has no value in the app chart and imports the value from the library
// - app3 has no value in the app chart and imports the value from the library
// chart. The library chart value should be used.
// chart. The library chart value should be used.
// - app4 has a value in the app chart and does not import the value from the
// - app4 has a value in the app chart and does not import the value from the
// library chart. The app charts value should be used.
// library chart. The app charts value should be used.
e [ "app1.service.port" ] = "3456"
e [ "app1.service.port" ] = "3456"
e [ "app2.service.port" ] = " 909 0"
e [ "app2.service.port" ] = " 808 0"
e [ "app3.service.port" ] = "9090"
e [ "app3.service.port" ] = "9090"
e [ "app4.service.port" ] = "1234"
e [ "app4.service.port" ] = "1234"
if err := processDependencyImportValues ( c , true ) ; err != nil {
if err := processDependencyImportValues ( c , true ) ; err != nil {