mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixing up previous include test
This commit is contained in:
parent
4d659229ce
commit
5bcb715dc0
4 changed files with 2 additions and 21 deletions
|
@ -1,3 +0,0 @@
|
|||
dependencies:
|
||||
- prepare_tests
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
dependencies:
|
||||
- prepare_tests
|
||||
|
|
@ -117,21 +117,7 @@
|
|||
# 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 }}"
|
||||
include: test_include.yml param={{ test_input }}
|
||||
register: result
|
||||
|
||||
- debug: var=result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 'result.dest == "{{ output_dir|expanduser }}/test_include.yml"'
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
- debug: var=param
|
Loading…
Reference in a new issue