diff options
author | Daniel Hokka Zakrisson <daniel@hozac.com> | 2012-11-06 20:57:35 +0100 |
---|---|---|
committer | Daniel Hokka Zakrisson <daniel@hozac.com> | 2012-11-06 20:57:35 +0100 |
commit | 40af8eff14f3e1bc2157584f1fe3b84505557653 (patch) | |
tree | 4d856501f97a48a3dc01937a80230ea6ed6d7bfe /test | |
parent | Don't double dwim first_available_file in template (diff) | |
download | ansible-40af8eff14f3e1bc2157584f1fe3b84505557653.tar.xz ansible-40af8eff14f3e1bc2157584f1fe3b84505557653.zip |
Add testcase for first_available_file
Diffstat (limited to 'test')
-rw-r--r-- | test/TestPlayBook.py | 2 | ||||
-rw-r--r-- | test/playbook1.yml | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/TestPlayBook.py b/test/TestPlayBook.py index dd4eb6ab40..9dec825b5c 100644 --- a/test/TestPlayBook.py +++ b/test/TestPlayBook.py @@ -130,7 +130,7 @@ class TestPlaybook(unittest.TestCase): return result def test_one(self): - pb = os.path.join(self.test_dir, 'playbook1.yml') + pb = 'test/playbook1.yml' actual = self._run(pb) # if different, this will output to screen diff --git a/test/playbook1.yml b/test/playbook1.yml index ddad2bc542..bbadc7ec0f 100644 --- a/test/playbook1.yml +++ b/test/playbook1.yml @@ -41,7 +41,10 @@ # not be triggered twice because it's already triggered - 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: - on change 1 - on change 2 |