Skip to content

Commit

Permalink
chore: cleanup in build tests (#1441)
Browse files Browse the repository at this point in the history
cleanup of tests
  • Loading branch information
tisutisu authored Oct 29, 2024
1 parent abc2ffe commit 8ce79e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/build/build_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,9 @@ var _ = framework.BuildSuiteDescribe("Build templates E2E test", Label("build",
tr, err := kubeadminClient.TektonController.GetTaskRunStatus(kubeadminClient.CommonController.KubeRest(), pr, "verify-enterprise-contract")
Expect(err).NotTo(HaveOccurred())
Expect(tekton.DidTaskRunSucceed(tr)).To(BeTrue())
Expect(tr.Status.TaskRunStatusFields.Results).Should(Or(
// TODO: delete the first option after https://issues.redhat.com/browse/RHTAP-810 is completed
ContainElements(tekton.MatchTaskRunResultWithJSONPathValue(constants.OldTektonTaskTestOutputName, "{$.result}", `["SUCCESS"]`)),
Expect(tr.Status.TaskRunStatusFields.Results).Should(
ContainElements(tekton.MatchTaskRunResultWithJSONPathValue(constants.TektonTaskTestOutputName, "{$.result}", `["SUCCESS"]`)),
))
)
})
It("contains non-empty sbom files", Label(buildTemplatesTestLabel), func() {
purl, cyclonedx, err := build.GetParsedSbomFilesContentFromImage(imageWithDigest)
Expand Down

0 comments on commit 8ce79e7

Please sign in to comment.