Commit 4d659229 by James Cammarata

Adding integration test to parsing for includes with params

parent 6eac47e5
......@@ -116,3 +116,22 @@
that:
# command shouldn't end in spaces, amend test once fixed
- result.cmd == "echo foo --arg=a --arg=b"
- name: create a test file to include
copy: 'dest={{ output_dir }}/test_include.yml content="- debug: var=param\n"'
register: result
- name: assert that the test include file was created
assert:
that:
- result.changed
- name: test includes with params
include: "{{ output_dir }}/test_include.yml param={{ test_input }}"
register: result
- debug: var=result
- assert:
that:
- 'result.dest == "{{ output_dir|expanduser }}/test_include.yml"'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment