summaryrefslogtreecommitdiff
path: root/test/integration/targets/template
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/template')
-rw-r--r--test/integration/targets/template/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/targets/template/tasks/main.yml b/test/integration/targets/template/tasks/main.yml
index 10ea474d7c..da80343686 100644
--- a/test/integration/targets/template/tasks/main.yml
+++ b/test/integration/targets/template/tasks/main.yml
@@ -706,5 +706,14 @@
- 'diff_result.stdout == ""'
- "diff_result.rc == 0"
+- debug:
+ msg: "{{ 'x' in y }}"
+ ignore_errors: yes
+ register: error
+
+- name: check that proper error message is emitted when in operator is used
+ assert:
+ that: "\"'y' is undefined\" in error.msg"
+
# aliases file requires root for template tests so this should be safe
- include: backup_test.yml