ansible/test
willthames 377bc31311 Prevent premature substitution of variables into tasks
As documented in #2623, early variable substitution causes when_
tests to fail and possibly other side effects.

I can see the reason for this early substitution, likely introduced
in 1dfe60a6, to allow many playbook parameters to be templated.
This is a valid goal, but the recursive nature of the utils.template
function means that it goes too far.

At this point removing tasks from the list of parameters to be
substituted seems sufficient to make my tests pass. It may be the
case that other parameters should be excluded, but I suspect not.

Adding a test case. I would prefer to analyse not just the aggregate
statistics but also whether the results are as expected - I can't
see an easy way to do that with the available callbacks at present.
2013-04-12 09:17:03 +10:00
..
assemble.d
inventory_dir Add some tests for directory-based inventory 2013-03-01 23:34:14 +01:00
test_playbook_vars
ansible.cfg
ansible_hosts
apt_key.gpg
CentOS.yml
common_vars.yml
complex_hosts
cron_test.yml Cron module upgrades 2013-02-09 11:11:19 -05:00
default_os.yml
hosts_list.yml
inventory_api.py
jinja2_overrides.tpl
large_range
lookup_plugins.yml password lookup plugin, with working tests and documentation 2013-03-10 13:36:53 +11:00
playbook-included.yml
playbook-includer.yml Since we removed the (undocumented) playbook include + with_items code, fix the tests to 2013-04-10 15:08:18 -04:00
playbook-when.yml Prevent premature substitution of variables into tasks 2013-04-12 09:17:03 +10:00
playbook1.yml Preliminary ability to use Jinja2 {{ }} to replace ${foo.bar} in playbooks. Can't use both at the same time per line. 2013-04-03 01:04:16 -04:00
results_list.yml
rocannon.txt Added test cases for lineinfile. 2013-02-23 12:50:18 -05:00
sample.j2 Fixing bug with unicode templates. 2013-02-05 14:49:59 +01:00
simple_hosts
task-included.yml Test case and fix for shlex.split unicode bug 2013-04-08 14:47:43 +10:00
task-includer.yml Test case and fix for shlex.split unicode bug 2013-04-08 14:47:43 +10:00
template-basic
template-whitespace
TestConstants.py
TestFilters.py Disable filter test for now since it should really be testing at a lower level. 2013-03-01 17:42:14 -05:00
TestInventory.py Standardize test output 2013-04-05 13:13:33 -04:00
TestPlayBook.py Prevent premature substitution of variables into tasks 2013-04-12 09:17:03 +10:00
TestRunner.py Add code to flag legacy templating like $foo.{bar} as deprecated in favor of Jinja2 {{ foo.bar }} so we 2013-04-10 17:52:35 -04:00
TestUtils.py Some continued work on new-style templates and associated test code changes. Legacy template functions 2013-04-10 19:09:57 -04:00
world