mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 07:05:27 +01:00
sanity fix in tests
This commit is contained in:
parent
48c2e9310e
commit
94059765b6
1 changed files with 8 additions and 8 deletions
|
|
@ -339,27 +339,27 @@
|
||||||
- stat_result_b.stat.exists == True
|
- stat_result_b.stat.exists == True
|
||||||
- stat_result_b.stat.checksum == '2aae6c35c94fcfb415dbe95f408b9ce91ee846ed'
|
- stat_result_b.stat.checksum == '2aae6c35c94fcfb415dbe95f408b9ce91ee846ed'
|
||||||
|
|
||||||
- name: synchronize files with quiet option
|
- name: Synchronize files with quiet option
|
||||||
synchronize:
|
ansible.posix.synchronize:
|
||||||
src: '{{ output_dir }}/foo.txt'
|
src: '{{ output_dir }}/foo.txt'
|
||||||
dest: '{{ output_dir }}/foo.result'
|
dest: '{{ output_dir }}/foo.result'
|
||||||
quiet: true
|
quiet: true
|
||||||
register: sync_result
|
register: sync_result
|
||||||
|
|
||||||
- name: Assertion for synchronize with quiet option
|
- name: Assertion for synchronize with quiet option
|
||||||
assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- '''files/directories have been synchronized'' in sync_result.msg'
|
- '''files/directories have been synchronized'' in sync_result.msg'
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
path: '{{ output_dir }}/{{ item }}'
|
path: '{{ output_dir }}/{{ item }}'
|
||||||
loop:
|
loop:
|
||||||
- foo.result
|
- foo.result
|
||||||
- bar.result
|
- bar.result
|
||||||
|
|
||||||
- name: synchronize files without quiet option
|
- name: Synchronize files without quiet option
|
||||||
synchronize:
|
synchronize:
|
||||||
src: '{{ output_dir }}/foo.txt'
|
src: '{{ output_dir }}/foo.txt'
|
||||||
dest: '{{ output_dir }}/foo.result'
|
dest: '{{ output_dir }}/foo.result'
|
||||||
|
|
@ -368,7 +368,7 @@
|
||||||
- name: Assertion for synchronize without quiet option
|
- name: Assertion for synchronize without quiet option
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- '''files/directories have been synchronized'' not in sync_result.msg'
|
- '''files/directories have been synchronized'' not in sync_result.msg'
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue