summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/blocks/block_rescue_vars.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/blocks/block_rescue_vars.yml')
-rw-r--r--test/integration/targets/blocks/block_rescue_vars.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/targets/blocks/block_rescue_vars.yml b/test/integration/targets/blocks/block_rescue_vars.yml
new file mode 100644
index 0000000..404f7a3
--- /dev/null
+++ b/test/integration/targets/blocks/block_rescue_vars.yml
@@ -0,0 +1,16 @@
+- hosts: localhost
+ gather_facts: no
+ tasks:
+ - block:
+ - name: EXPECTED FAILURE
+ fail:
+ rescue:
+ - name: Assert that ansible_failed_task is defined
+ assert:
+ that:
+ - ansible_failed_task is defined
+
+ - name: Assert that ansible_failed_result is defined
+ assert:
+ that:
+ - ansible_failed_result is defined