Merge "Add test for fileglob behaviour"

This commit is contained in:
Zuul 2020-09-30 20:48:46 +00:00 committed by Gerrit Code Review
commit 3386126faa
3 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,5 @@
- hosts: localhost
tasks:
- name: fileglob in a bad location
debug:
msg: '{{ lookup("fileglob", "/tmp/*") }}'

View File

@ -0,0 +1,5 @@
- hosts: localhost
tasks:
- name: fileglob in a good location
debug:
msg: '{{ lookup("fileglob", zuul.executor.work_root + "/*") }}'

View File

@ -2956,6 +2956,8 @@ class FunctionalAnsibleMixIn(object):
('block_local_override', 'FAILURE'),
('file_local_good', 'SUCCESS'),
('file_local_bad', 'FAILURE'),
('fileglob_local_good', 'SUCCESS'),
('fileglob_local_bad', 'FAILURE'),
('zuul_return', 'SUCCESS'),
('password_create_good', 'SUCCESS'),
('password_null_good', 'SUCCESS'),