summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/integration/targets/templating/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/templating/tasks/main.yml b/test/integration/targets/templating/tasks/main.yml
index 312e171de3..edbf012e38 100644
--- a/test/integration/targets/templating/tasks/main.yml
+++ b/test/integration/targets/templating/tasks/main.yml
@@ -33,3 +33,14 @@
- result is failed
- >-
"TemplateSyntaxError: Could not load \"asdf \": 'invalid plugin name: ansible.builtin.asdf '" in result.msg
+
+- name: Make sure syntax errors originating from a template being compiled into Python code object result in a failure
+ debug:
+ msg: "{{ lookup('vars', 'v1', default='', default='') }}"
+ ignore_errors: true
+ register: r
+
+- assert:
+ that:
+ - r is failed
+ - "'keyword argument repeated' in r.msg"