diff options
Diffstat (limited to '')
3 files changed, 17 insertions, 0 deletions
diff --git a/test/integration/targets/unexpected_executor_exception/action_plugins/unexpected.py b/test/integration/targets/unexpected_executor_exception/action_plugins/unexpected.py new file mode 100644 index 0000000..77fe58f --- /dev/null +++ b/test/integration/targets/unexpected_executor_exception/action_plugins/unexpected.py @@ -0,0 +1,8 @@ +from ansible.plugins.action import ActionBase + + +class ActionModule(ActionBase): + TRANSFERS_FILES = False + + def run(self, tmp=None, task_vars=None): + raise Exception('boom') diff --git a/test/integration/targets/unexpected_executor_exception/aliases b/test/integration/targets/unexpected_executor_exception/aliases new file mode 100644 index 0000000..1d28bdb --- /dev/null +++ b/test/integration/targets/unexpected_executor_exception/aliases @@ -0,0 +1,2 @@ +shippable/posix/group5 +context/controller diff --git a/test/integration/targets/unexpected_executor_exception/tasks/main.yml b/test/integration/targets/unexpected_executor_exception/tasks/main.yml new file mode 100644 index 0000000..395b50c --- /dev/null +++ b/test/integration/targets/unexpected_executor_exception/tasks/main.yml @@ -0,0 +1,7 @@ +- unexpected: + register: result + ignore_errors: true + +- assert: + that: + - 'result.msg == "Unexpected failure during module execution: boom"' |