Add test case for non-existing variable in varReplaceWithItems

parent 07ba7e20
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment