Skip to content

Commit f81ee7e

Browse files
authored
docs: fix custom scorecard test code sample (#5196)
sample code was broken and no longer reflected the current practice Signed-off-by: Per da Silva <[email protected]>
1 parent a1b2de7 commit f81ee7e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

website/content/en/docs/testing-operators/scorecard/custom-tests.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The `tests.go` file is where the custom tests are implemented in the sample test
6969
package tests
7070

7171
import (
72-
"github.com/operator-framework/operator-registry/pkg/registry"
72+
apimanifests "github.com/operator-framework/api/pkg/manifests"
7373
scapiv1alpha3 "github.com/operator-framework/api/pkg/apis/scorecard/v1alpha3"
7474
)
7575

@@ -78,10 +78,9 @@ const (
7878
)
7979

8080
// CustomTest1
81-
func CustomTest1(bundle registry.Bundle) scapiv1alpha3.TestStatus {
81+
func CustomTest1(bundle *apimanifests.Bundle) scapiv1alpha3.TestStatus {
8282
r := scapiv1alpha3.TestResult{}
8383
r.Name = CustomTest1Name
84-
r.Description = "Custom Test 1"
8584
r.State = scapiv1alpha3.PassState
8685
r.Errors = make([]string, 0)
8786
r.Suggestions = make([]string, 0)

0 commit comments

Comments
 (0)