Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Nov 9, 2023
1 parent de5ce77 commit 1362896
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openshift-with-appstudio-test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ func GenerateStatusReport(namespace string, jvmClient *jvmclientset.Clientset, k
}
}
for _, pipelineRun := range pipelineList.Items {
println(fmt.Sprintf("pipelinerun %s for DB %s", pipelineRun.Name, db.Name))
if strings.HasPrefix(pipelineRun.Name, db.Name) {
t := pipelineRun
yaml := encodeToYaml(&t)
Expand Down Expand Up @@ -656,11 +657,13 @@ func GenerateStatusReport(namespace string, jvmClient *jvmclientset.Clientset, k
}
}
for _, taskRun := range taskRunList.Items {
println(fmt.Sprintf("taskrun %s for DB %s", taskRun.Name, db.Name))
if strings.HasPrefix(taskRun.Name, db.Name) {
t := taskRun
yaml := encodeToYaml(&t)
localPart := localDir + "-" + "taskrun-" + t.Name
target := directory + "/" + localPart
println(fmt.Sprintf("writing taskrun %s to %s", taskRun.Name, target))
err := os.WriteFile(target, []byte(yaml), 0644) //#nosec G306)
if err != nil {
print(fmt.Sprintf("Failed to write taskrun file %s: %s", target, err))
Expand Down

0 comments on commit 1362896

Please sign in to comment.