
In order to test the different code paths for action execution it is very useful to be able to make the actions fail in the different execution stages. This patch adds three new options `fail_pre_condition`, `fail_execute` and `fail_post_condition`. Setting any of them to True makes the action to fail in the specified step. Change-Id: Ied8c0bb767d9bb6bdfb9209365857a3b4d606b40 Signed-off-by: Alfredo Moralejo <amoralej@redhat.com>
15 lines
406 B
YAML
15 lines
406 B
YAML
---
|
|
features:
|
|
- |
|
|
Three new parameters have been added to the ``nop`` action:
|
|
|
|
* ``fail_pre_condition``: When setting it to `true` the action
|
|
fails on the pre_condition execution.
|
|
|
|
* ``fail_execute``: When setting it to `true` the action fails
|
|
on the execute step.
|
|
|
|
* ``fail_post_condition``: When setting it to `true` the action
|
|
fails on the post_condition execution.
|
|
|