INNER CODE UNIT · Go
printValidTests
backube/volsync · custom-scorecard-tests/main.go:97
func printValidTests() scapiv1alpha3.TestStatus {
r := scapiv1alpha3.TestResult{}
r.State = scapiv1alpha3.FailState
r.Errors = make([]string, 0)
r.Suggestions = make([]string, 0)
msg := "Valid tests for this image include: \n"
for _, testName := range validTests {
msg += fmt.Sprintf("- %s\n", testName)
}
r.Errors = append(r.Errors, msg)
return wrapResult(r)
}
func getAvailableAnsiblePlaybookTests() ([]string, error) {