mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
add more tests :
- test part of ansible.runner.filter_plugins.core - test ansible.utils.unfrackpath
This commit is contained in:
parent
4efdf0d49f
commit
399d57a651
2 changed files with 29 additions and 2 deletions
|
@ -15,6 +15,12 @@ class TestUtils(unittest.TestCase):
|
|||
#####################################
|
||||
### varReplace function tests
|
||||
|
||||
def test_unfrackpath(self):
|
||||
os.symlink("/etc", "/tmp/etc")
|
||||
a = ansible.utils.unfrackpath('$HOME/../../tmp/etc/')
|
||||
assert a == '/etc'
|
||||
os.unlink('/tmp/etc')
|
||||
|
||||
def test_varReplace_simple(self):
|
||||
template = 'hello $who'
|
||||
vars = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue