1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-10 18:15:39 +00:00

Fix lookup_filetree integration test lookup term path

This commit is contained in:
Santosh Mahale 2026-06-09 21:21:51 +05:30
parent 8cec602a85
commit 52e98362e7

View file

@ -33,7 +33,7 @@
- name: Lookup filetree without exclude
ansible.builtin.set_fact:
filetree_all: "{{ lookup('community.general.filetree', 'data') }}"
filetree_all: "{{ lookup('community.general.filetree', 'data/') }}"
- name: Verify all entries are listed
ansible.builtin.assert:
@ -45,7 +45,7 @@
- name: Lookup filetree with valid exclude regex
ansible.builtin.set_fact:
filetree_filtered: "{{ lookup('community.general.filetree', 'data', exclude='^\\.git$') }}"
filetree_filtered: "{{ lookup('community.general.filetree', 'data/', exclude='^\\.git$') }}"
- name: Verify exclude filters matching basenames
ansible.builtin.assert:
@ -65,7 +65,7 @@
- name: Lookup filetree with invalid exclude regex
ansible.builtin.debug:
msg: "{{ lookup('community.general.filetree', 'data', exclude='temp[1') }}"
msg: "{{ lookup('community.general.filetree', 'data/', exclude='temp[1') }}"
ignore_errors: true
register: invalid_exclude