mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Add testcase for first_available_file
This commit is contained in:
@@ -130,7 +130,7 @@ class TestPlaybook(unittest.TestCase):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def test_one(self):
|
def test_one(self):
|
||||||
pb = os.path.join(self.test_dir, 'playbook1.yml')
|
pb = 'test/playbook1.yml'
|
||||||
actual = self._run(pb)
|
actual = self._run(pb)
|
||||||
|
|
||||||
# if different, this will output to screen
|
# if different, this will output to screen
|
||||||
|
|||||||
@@ -41,7 +41,10 @@
|
|||||||
# not be triggered twice because it's already triggered
|
# not be triggered twice because it's already triggered
|
||||||
|
|
||||||
- name: test template
|
- name: test template
|
||||||
action: template src=sample.j2 dest=/tmp/ansible_test_data_template.out
|
action: template src=$item dest=/tmp/ansible_test_data_template.out
|
||||||
|
first_available_file:
|
||||||
|
- nonexistantfile
|
||||||
|
- sample.j2
|
||||||
notify:
|
notify:
|
||||||
- on change 1
|
- on change 1
|
||||||
- on change 2
|
- on change 2
|
||||||
|
|||||||
Reference in New Issue
Block a user