Add test for fileglob behaviour

I can't find a reference to fileglob anywhere in the testing, but it
is allowed to run on the executor.  It seems worth adding a path to
exercise that.

Change-Id: Ie19d38479d3be34b1a62c6c2ab1506fe99b287e1
This commit is contained in:
Ian Wienand 2020-09-22 13:46:12 +10:00
parent 218d99d93a
commit e2318d3ca2
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

@ -2839,6 +2839,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'),