-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scorecard e2e Testing #3507
Scorecard e2e Testing #3507
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good once you apply Eric's suggestion and it passes CI.
test/e2e/e2e_suite.go
Outdated
resultTable["olm-status-descriptors"] = v1alpha3.FailState | ||
resultTable["olm-crds-have-resources"] = v1alpha3.FailState | ||
resultTable["olm-bundle-validation"] = v1alpha3.PassState | ||
resultTable["olm-spec-descriptors"] = v1alpha3.FailState | ||
resultTable["olm-crds-have-validation"] = v1alpha3.PassState |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use these constants.
resultTable["olm-spec-descriptors"] = v1alpha3.FailState | ||
resultTable["olm-crds-have-validation"] = v1alpha3.PassState | ||
|
||
for a := 0; a < len(scorecardOutput.Items); a++ { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use test names to index into the resultTable
map to make sure each test is run.
test/e2e/e2e_suite.go
Outdated
runOLMScorecardCmd := exec.Command(tc.BinaryName, "scorecard", "bundle", | ||
"--selector=suite=olm", | ||
"--output=json", | ||
"--skip-cleanup=true", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason we're skipping cleanup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Add basic and olm scorecard tests to e2e test suite.