diff --git a/internal/engine/errors/errors_test.go b/internal/engine/errors/errors_test.go index c3729969f2..09110bd40c 100644 --- a/internal/engine/errors/errors_test.go +++ b/internal/engine/errors/errors_test.go @@ -19,8 +19,6 @@ import ( "testing" "github.com/stretchr/testify/require" - - "github.com/stacklok/minder/internal/engine/eval/templates" ) func TestLegacyEvaluationDetailRendering(t *testing.T) { @@ -113,15 +111,6 @@ func TestEvaluationDetailRendering(t *testing.T) { error: "evaluation failure: this is the message", details: "evaluation failure: this is the message", }, - // vulncheck template - { - name: "vulncheck template", - msg: "this is the message", - tmpl: templates.VulncheckTemplate, - args: map[string]any{"packages": []string{"boto3", "urllib3", "python-oauth2"}}, - error: "evaluation failure: this is the message", - details: "Vulnerable packages found:\n* `boto3`\n* `urllib3`\n* `python-oauth2`\n", - }, } for _, tt := range tests { diff --git a/internal/engine/eval/templates/vulncheckTemplate.tmpl b/internal/engine/eval/templates/vulncheckTemplate.tmpl index 45e8232e56..0f4b0f2fa2 100644 --- a/internal/engine/eval/templates/vulncheckTemplate.tmpl +++ b/internal/engine/eval/templates/vulncheckTemplate.tmpl @@ -1,4 +1,4 @@ Vulnerable packages found: {{- range .packages }} -* `{{- . -}}` +* {{ . }} {{- end }} diff --git a/internal/engine/eval/vulncheck/vulncheck_test.go b/internal/engine/eval/vulncheck/vulncheck_test.go index 15cca4052b..59f82fec3a 100644 --- a/internal/engine/eval/vulncheck/vulncheck_test.go +++ b/internal/engine/eval/vulncheck/vulncheck_test.go @@ -42,7 +42,7 @@ func TestEvaluationDetailRendering(t *testing.T) { tmpl: templates.VulncheckTemplate, args: map[string]any{"packages": []string{"boto3", "urllib3", "python-oauth2"}}, error: "evaluation failure: this is the message", - details: "Vulnerable packages found:\n* `boto3`\n* `urllib3`\n* `python-oauth2`\n", + details: "Vulnerable packages found:\n* boto3\n* urllib3\n* python-oauth2\n", }, }