mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00: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:
committed by
Brian Coca
parent
58239671c0
commit
fc4ab22f05
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user