Skip to content

Scorecard e2e Testing#3507

Merged
jmrodri merged 12 commits intooperator-framework:masterfrom
theishshah:scorecard-e2e
Jul 31, 2020
Merged

Scorecard e2e Testing#3507
jmrodri merged 12 commits intooperator-framework:masterfrom
theishshah:scorecard-e2e

Conversation

@theishshah
Copy link
Copy Markdown
Contributor

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
Comment thread test/e2e/e2e_suite.go
Comment thread test/e2e/e2e_suite.go
@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
Copy Markdown
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 thread test/e2e/e2e_suite.go Outdated
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Use these constants.

Comment thread test/e2e/e2e_suite.go
resultTable["olm-spec-descriptors"] = v1alpha3.FailState
resultTable["olm-crds-have-validation"] = v1alpha3.PassState

for a := 0; a < len(scorecardOutput.Items); a++ {
Copy link
Copy Markdown
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.

Comment thread test/e2e/e2e_suite.go Outdated
runOLMScorecardCmd := exec.Command(tc.BinaryName, "scorecard", "bundle",
"--selector=suite=olm",
"--output=json",
"--skip-cleanup=true",
Copy link
Copy Markdown
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
Copy Markdown
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