mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Add test case for non-existing variable in varReplaceWithItems
This commit is contained in:
@@ -324,6 +324,10 @@ class TestUtils(unittest.TestCase):
|
||||
res = ansible.utils.varReplaceWithItems(None, template, vars)
|
||||
assert sorted(res) == sorted(vars['alphas'])
|
||||
|
||||
template = '${data.nonexisting}'
|
||||
res = ansible.utils.varReplaceWithItems(None, template, vars)
|
||||
assert res == template
|
||||
|
||||
#####################################
|
||||
### Template function tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user