Skip to content

Commit

Permalink
show-summary task check
Browse files Browse the repository at this point in the history
  • Loading branch information
tisutisu committed Mar 6, 2024
1 parent dacc69e commit 4273464
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/build/build_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,16 @@ var _ = framework.BuildSuiteDescribe("Build templates E2E test", Label("build",
Expect(sbom.Components).ToNot(BeEmpty())
})

It(fmt.Sprintf("should ensure show-summary task ran for component with Git source URL %s", gitUrl), Label(buildTemplatesTestLabel), func() {
pr, err = kubeadminClient.HasController.GetComponentPipelineRun(componentNames[i], applicationName, testNamespace, "")
Expect(err).ShouldNot(HaveOccurred())
Expect(pr).ToNot(BeNil(), fmt.Sprintf("PipelineRun for the component %s/%s not found", testNamespace, componentNames[i]))

logs, err := kubeadminClient.TektonController.GetTaskRunLogs(pr.GetName(), "show-summary", testNamespace)
Expect(err).ShouldNot(HaveOccurred())
Expect(logs).To(HaveLen(1))
})

It("check for source images if enabled in pipeline", Label(buildTemplatesTestLabel), func() {

isSourceBuildEnabled := build.IsSourceBuildEnabled(pr)
Expand Down

0 comments on commit 4273464

Please sign in to comment.