From 8ce79e73d844fe776f8e93702cdb788fbf4dc2e4 Mon Sep 17 00:00:00 2001 From: Sushanta Das Date: Tue, 29 Oct 2024 15:01:41 +0530 Subject: [PATCH] chore: cleanup in build tests (#1441) cleanup of tests --- tests/build/build_templates.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/build/build_templates.go b/tests/build/build_templates.go index b8518fd1f..159fe79cf 100644 --- a/tests/build/build_templates.go +++ b/tests/build/build_templates.go @@ -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)