You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
12 years ago
..
assemble.d - Makefile now works with freebsd (date command options are diff) 12 years ago
inventory_dir Add some tests for directory-based inventory 12 years ago
test_playbook_vars Always load group_vars and host_vars. 12 years ago
CentOS.yml Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive 13 years ago
TestConstants.py Fixed tests to reflect desired configuration behaviour 12 years ago
TestFilters.py Disable filter test for now since it should really be testing at a lower level. 12 years ago
TestInventory.py Standardize test output 12 years ago
TestPlayBook.py Prevent premature substitution of variables into tasks 12 years ago
TestRunner.py Add code to flag legacy templating like $foo.{bar} as deprecated in favor of Jinja2 {{ foo.bar }} so we 12 years ago
TestUtils.py Some continued work on new-style templates and associated test code changes. Legacy template functions 12 years ago
ansible.cfg Fixed tests to reflect desired configuration behaviour 12 years ago
ansible_hosts - Makefile now works with freebsd (date command options are diff) 12 years ago
apt_key.gpg add apt_key module 12 years ago
common_vars.yml Fix correct variable expansion in includes only_if. 13 years ago
complex_hosts Merge pull request #1776 from junegunn/inventory-group-var-ws 12 years ago
cron_test.yml Cron module upgrades 12 years ago
default_os.yml Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive 13 years ago
hosts_list.yml Make tests use the local connection type, fix missing callback in tests. 12 years ago
inventory_api.py Return multiple groups from inventory API. 12 years ago
jinja2_overrides.tpl moved override matching string to variable changed test template to match Signed-off-by: Brian Coca <briancoca+ansible@gmail.com> 12 years ago
large_range Alphabetic inventory hostname patterns. 12 years ago
lookup_plugins.yml password lookup plugin, with working tests and documentation 12 years ago
playbook-included.yml Make use of yes/no booleans in playbooks 12 years ago
playbook-includer.yml Since we removed the (undocumented) playbook include + with_items code, fix the tests to 12 years ago
playbook-when.yml Prevent premature substitution of variables into tasks 12 years ago
playbook1.yml Preliminary ability to use Jinja2 {{ }} to replace ${foo.bar} in playbooks. Can't use both at the same time per line. 12 years ago
results_list.yml Make tests use the local connection type, fix missing callback in tests. 12 years ago
rocannon.txt Added test cases for lineinfile. 12 years ago
sample.j2 Fixing bug with unicode templates. 12 years ago
simple_hosts Alphabetic inventory hostname patterns. 12 years ago
task-included.yml Test case and fix for shlex.split unicode bug 12 years ago
task-includer.yml Test case and fix for shlex.split unicode bug 12 years ago
template-basic Update tests to reflect new API 13 years ago
template-whitespace Update tests to reflect new API 13 years ago
world Add test data file 12 years ago