mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
add more tests :
- test part of ansible.runner.filter_plugins.core - test ansible.utils.unfrackpath
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user