mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 22:00:22 -07:00
Add gr_name and pw_name in find module
The fix adds gr_name and pw_name in return output. Integration test added. Fixes: #25643 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
58239671c0
commit
fc4ab22f05
2 changed files with 31 additions and 0 deletions
|
@ -81,3 +81,17 @@
|
|||
that:
|
||||
- 'find_test1.matched == 2'
|
||||
- 'find_test1.files | length == 2'
|
||||
|
||||
- name: find the xml file
|
||||
find:
|
||||
paths: "{{ output_dir_test }}"
|
||||
patterns: "*.xml"
|
||||
recurse: yes
|
||||
register: find_test2
|
||||
- debug: var=find_test2
|
||||
- name: validate gr_name and pw_name are defined
|
||||
assert:
|
||||
that:
|
||||
- 'find_test2.matched == 1'
|
||||
- 'find_test2.files[0].pw_name is defined'
|
||||
- 'find_test2.files[0].gr_name is defined'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue