Add parameters to force failures in nop action

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>
This commit is contained in:
Alfredo Moralejo
2025-07-24 19:04:43 +02:00
parent 1a9f17748e
commit 1fb89aeac3
3 changed files with 94 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
---
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.