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 63549f4 commit 8a24a0c
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"}}}

Check failure on line 98 in charts/falco/tests/unit/serviceTemplate_test.go

View workflow job for this annotation

GitHub Actions / go-unit-tests

invalid composite literal type string
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"}}}

Check failure on line 137 in charts/falco/tests/unit/serviceTemplate_test.go

View workflow job for this annotation

GitHub Actions / go-unit-tests

invalid composite literal type string
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 8a24a0c

Please sign in to comment.