Add test case for non-existing variable in varReplaceWithItems
This commit is contained in:
parent
07ba7e2013
commit
56314f7225
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue