File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
plugin/builtin/helmchartinflationgenerator Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1007,22 +1007,23 @@ func TestHelmChartInflationGeneratorWithDevel(t *testing.T) {
10071007apiVersion: builtin
10081008kind: HelmChartInflationGenerator
10091009metadata:
1010- name: test-chart
1011- name: test-chart
1010+ name: sm-operator
1011+ name: sm-operator
10121012version: 0.1.0-Beta
10131013repo: https://charts.bitwarden.com/
10141014releaseName: sm-operator
1015+ chartHome: ./charts
10151016devel: true
10161017` )
10171018 cm , err := rm .Resources ()[0 ].GetFieldValue ("metadata.name" )
10181019 require .NoError (t , err )
1019- assert .Equal (t , "bar " , cm )
1020+ assert .Equal (t , "sm-operator-controller-manager " , cm )
10201021
1021- chartDir := filepath .Join (th .GetRoot (), "charts/test-chart " )
1022+ chartDir := filepath .Join (th .GetRoot (), "charts/sm-operator-0.1.0-Beta/sm-operator " )
10221023 assert .True (t , th .GetFSys ().Exists (chartDir ))
10231024
10241025 chartYamlContent , err := th .GetFSys ().ReadFile (filepath .Join (chartDir , "Chart.yaml" ))
10251026 require .NoError (t , err )
1026- assert .Contains (t , string (chartYamlContent ), "name: test-chart " )
1027+ assert .Contains (t , string (chartYamlContent ), "name: sm-operator " )
10271028 assert .Contains (t , string (chartYamlContent ), "version: 0.1.0-Beta" )
10281029}
You can’t perform that action at this time.
0 commit comments