Skip to content
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

Merged
merged 12 commits into from
Jul 31, 2020
Merged

Conversation

theishshah
Copy link
Member

Add basic and olm scorecard tests to e2e test suite.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 23, 2020
@theishshah theishshah changed the title [WIP] Scorecard e2e Testing Scorecard e2e Testing Jul 24, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 24, 2020
Copy link
Contributor

@jmccormick2001 jmccormick2001 left a 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.

@joelanford joelanford mentioned this pull request Jul 24, 2020
92 tasks
Comment on lines 235 to 239
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
Copy link
Member

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++ {
Copy link
Member

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.

runOLMScorecardCmd := exec.Command(tc.BinaryName, "scorecard", "bundle",
"--selector=suite=olm",
"--output=json",
"--skip-cleanup=true",
Copy link
Member

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?

Copy link
Member

@jmrodri jmrodri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 31, 2020
@jmrodri jmrodri merged commit 96b4e32 into operator-framework:master Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants