mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
Adding tests, corrections
This commit is contained in:
parent
6afd4cdcf1
commit
e72424ae50
4 changed files with 28 additions and 3 deletions
|
|
@ -1,2 +1,2 @@
|
||||||
minor_changes:
|
minor_changes:
|
||||||
- synchronize - add the ``quiet`` option to supress non-error messages (https://github.com/ansible-collections/ansible.posix/issues/171).
|
- synchronize - add the ``quiet`` option to suppress non-error messages (https://github.com/ansible-collections/ansible.posix/issues/171).
|
||||||
|
|
|
||||||
2
tests/integration/inventory
Normal file
2
tests/integration/inventory
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[testgroup]
|
||||||
|
testhost ansible_connection="local" ansible_pipelining="yes" ansible_python_interpreter="/Users/mandkulk/venv3.9/bin/python"
|
||||||
|
|
@ -342,9 +342,32 @@
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
state: absent
|
||||||
|
<<<<<<< HEAD
|
||||||
path: "{{ output_dir }}/{{ item }}"
|
path: "{{ output_dir }}/{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- directory b/foo.txt
|
- directory b/foo.txt
|
||||||
- directory a/foo.txt
|
- directory a/foo.txt
|
||||||
- directory a
|
- directory a
|
||||||
- directory b
|
- directory b
|
||||||
|
=======
|
||||||
|
path: '{{output_dir}}/{{item}}'
|
||||||
|
with_items:
|
||||||
|
- foo.result
|
||||||
|
- bar.result
|
||||||
|
- name: synchronize files without quiet option
|
||||||
|
synchronize:
|
||||||
|
src: '{{output_dir}}/foo.txt'
|
||||||
|
dest: '{{output_dir}}/foo.result'
|
||||||
|
register: sync_result
|
||||||
|
ignore_errors: true
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- '''--quiet'' not in sync_result.cmd'
|
||||||
|
- name: Cleanup
|
||||||
|
file:
|
||||||
|
state: absent
|
||||||
|
path: '{{output_dir}}/{{item}}'
|
||||||
|
with_items:
|
||||||
|
- foo.result
|
||||||
|
- bar.result
|
||||||
|
>>>>>>> 9dbedb6 (Adding tests, corrections)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue