mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
parent
2f33c1a1a1
commit
5553b20828
206 changed files with 1853 additions and 1870 deletions
|
@ -22,20 +22,21 @@ __metaclass__ = type
|
|||
from os.path import isdir, isfile, isabs, exists, lexists, islink, samefile, ismount
|
||||
from ansible import errors
|
||||
|
||||
|
||||
class TestModule(object):
|
||||
''' Ansible file jinja2 tests '''
|
||||
|
||||
def tests(self):
|
||||
return {
|
||||
# file testing
|
||||
'is_dir' : isdir,
|
||||
'is_file' : isfile,
|
||||
'is_link' : islink,
|
||||
'exists' : exists,
|
||||
'link_exists' : lexists,
|
||||
'is_dir': isdir,
|
||||
'is_file': isfile,
|
||||
'is_link': islink,
|
||||
'exists': exists,
|
||||
'link_exists': lexists,
|
||||
|
||||
# path testing
|
||||
'is_abs' : isabs,
|
||||
'is_same_file' : samefile,
|
||||
'is_mount' : ismount,
|
||||
'is_abs': isabs,
|
||||
'is_same_file': samefile,
|
||||
'is_mount': ismount,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue