From e33c17f663bb0739c78601304d1752d94071940f Mon Sep 17 00:00:00 2001 From: afreyermuth98 Date: Mon, 23 Sep 2024 15:22:55 +0200 Subject: [PATCH] :wrench: Ref to options Signed-off-by: afreyermuth98 --- charts/falco/tests/unit/serviceTemplate_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/falco/tests/unit/serviceTemplate_test.go b/charts/falco/tests/unit/serviceTemplate_test.go index 6568e0a4e..70e0c00ff 100644 --- a/charts/falco/tests/unit/serviceTemplate_test.go +++ b/charts/falco/tests/unit/serviceTemplate_test.go @@ -96,7 +96,7 @@ func (s *serviceTemplateTest) TestDefaultLabelsValues() { func (s *serviceTemplateTest) TestCustomLabelsValues() { // Render the service and check that it has not been rendered. options := &helm.Options{SetValues: map[string]string{"metrics.service.labels" : {"custom-label": "falco-label"}}} - output, err := helm.RenderTemplateE(s.T(), &helm.Options{}, s.chartPath, s.releaseName, s.templates) + output, err := helm.RenderTemplateE(s.T(), options, s.chartPath, s.releaseName, s.templates) s.Error(err, "should error") s.Equal("error while running command: exit status 1; Error: could not find template templates/service.yaml in chart", err.Error()) @@ -135,7 +135,7 @@ func (s *serviceTemplateTest) TestCustomLabelsValues() { func (s *serviceTemplateTest) TestCustomAnnotationsValues() { // Render the service and check that it has not been rendered. options := &helm.Options{SetValues: map[string]string{"metrics.service.annotations" : {"custom-annotation": "falco-annotation"}}} - output, err := helm.RenderTemplateE(s.T(), &helm.Options{}, s.chartPath, s.releaseName, s.templates) + output, err := helm.RenderTemplateE(s.T(), options, s.chartPath, s.releaseName, s.templates) s.Error(err, "should error") s.Equal("error while running command: exit status 1; Error: could not find template templates/service.yaml in chart", err.Error())