Skip to content

Commit

Permalink
🔧 Ref to options
Browse files Browse the repository at this point in the history
Signed-off-by: afreyermuth98 <anthofreyer@gmail.com>
  • Loading branch information
afreyermuth98 committed Sep 23, 2024
1 parent c29e56a commit e33c17f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/falco/tests/unit/serviceTemplate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down Expand Up @@ -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())

Expand Down

0 comments on commit e33c17f

Please sign in to comment.