From 52e98362e7fe129327faaeb6eeda5974cb192148 Mon Sep 17 00:00:00 2001 From: Santosh Mahale Date: Tue, 9 Jun 2026 21:21:51 +0530 Subject: [PATCH] Fix lookup_filetree integration test lookup term path --- tests/integration/targets/lookup_filetree/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/targets/lookup_filetree/tasks/main.yml b/tests/integration/targets/lookup_filetree/tasks/main.yml index ca301a5c83..56e7613017 100644 --- a/tests/integration/targets/lookup_filetree/tasks/main.yml +++ b/tests/integration/targets/lookup_filetree/tasks/main.yml @@ -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