diff options
author | Matt Clay <matt@mystile.com> | 2019-01-25 19:37:56 -0800 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2019-01-25 20:46:53 -0800 |
commit | a8116497ba302de524489ffd47444517b520e9a7 (patch) | |
tree | 3c4d07baddd98426280787f82c1231fefbd8cead /test/integration/targets/iterators | |
parent | 73636175da5f44eff2d2ac9623e38ed35d6e6309 (diff) | |
download | ansible-a8116497ba302de524489ffd47444517b520e9a7.tar.gz |
More test fixes for split controller/remote tests.
Diffstat (limited to 'test/integration/targets/iterators')
-rw-r--r-- | test/integration/targets/iterators/files/bar1 | 1 | ||||
-rw-r--r-- | test/integration/targets/iterators/files/foo1 | 1 | ||||
-rw-r--r-- | test/integration/targets/iterators/tasks/main.yml | 16 |
3 files changed, 7 insertions, 11 deletions
diff --git a/test/integration/targets/iterators/files/bar1 b/test/integration/targets/iterators/files/bar1 new file mode 100644 index 0000000000..5716ca5987 --- /dev/null +++ b/test/integration/targets/iterators/files/bar1 @@ -0,0 +1 @@ +bar diff --git a/test/integration/targets/iterators/files/foo1 b/test/integration/targets/iterators/files/foo1 new file mode 100644 index 0000000000..257cc5642c --- /dev/null +++ b/test/integration/targets/iterators/files/foo1 @@ -0,0 +1 @@ +foo diff --git a/test/integration/targets/iterators/tasks/main.yml b/test/integration/targets/iterators/tasks/main.yml index 969caa95cc..917d97357c 100644 --- a/test/integration/targets/iterators/tasks/main.yml +++ b/test/integration/targets/iterators/tasks/main.yml @@ -201,25 +201,19 @@ # WITH_FIRST_FOUND -- name: create file for test - shell: echo "foo" > {{ output_dir }}/foo1 - -- name: create file for test - shell: echo "bar" > {{ output_dir }}/bar1 - - name: test with_first_found #shell: echo {{ item }} set_fact: "first_found={{ item }}" with_first_found: - - "{{ output_dir + '/does_not_exist' }}" - - "{{ output_dir + '/foo1' }}" - - "{{ output_dir + '/bar1' }}" + - "{{ role_path + '/files/does_not_exist' }}" + - "{{ role_path + '/files/foo1' }}" + - "{{ role_path + '/files/bar1' }}" - name: set expected - set_fact: first_expected="{{ output_dir | expanduser + '/foo1' }}" + set_fact: first_expected="{{ role_path + '/files/foo1' }}" - name: set unexpected - set_fact: first_unexpected="{{ output_dir | expanduser + '/bar1' }}" + set_fact: first_unexpected="{{ role_path + '/files/bar1' }}" - name: verify with_first_found results assert: |