Skip to content

Commit

Permalink
fix: add extended model
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <vladislav@kubeshop.io>
  • Loading branch information
vsukhin committed Jul 3, 2024
1 parent 5349e35 commit ea30233
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/api/v1/testkube/model_test_workflow_step_parallel_extended.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package testkube

func (w *TestWorkflowStepParallel) ContainsExecuteAction() bool {
if w.Execute != nil && (len(w.Execute.Tests) != 0 || len(w.Execute.Workflows) != 0) {
return true
}

steps := append(w.Setup, append(w.Steps, w.After...)...)
for _, step := range steps {
if step.ContainsExecuteAction() {
return true
}
}

return false
}

0 comments on commit ea30233

Please sign in to comment.