mistral-tempest-plugin/mistral_tempest_tests/tests/resources/wf_v2.yaml
Arnaud Morin cbd1a97e24 Add new workflow wflong that will took longer
We have some tests that failed recently because the workflows where
already finished while we were trying to update them.
The update (e.g. set it in error) can only happen if the wf is not yet
finished.

Change-Id: I600f4e6616233b7ff62f51b158115bc370ff3591
Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
2024-08-16 17:13:54 +02:00

66 lines
889 B
YAML
Executable File

---
version: '2.0'
wf:
type: direct
tasks:
hello:
action: std.echo output="Hello"
wait-before: 1
publish:
result: <% task(hello).result %>
wflong:
type: direct
tasks:
hello:
action: std.echo output="Hello"
wait-before: 60
publish:
result: <% task(hello).result %>
wf1:
type: reverse
input:
- farewell
tasks:
addressee:
action: std.echo output="John"
publish:
name: <% task(addressee).result %>
goodbye:
action: std.echo output="<% $.farewell %>, <% $.name %>"
requires: [addressee]
wf2:
type: direct
tasks:
hello:
action: std.echo output="Doe"
subwf1:
type: direct
tasks:
task1:
workflow: subwf2
subwf2:
type: direct
tasks:
task1:
workflow: subwf3
subwf3:
type: direct
tasks:
task1:
action: std.noop