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/units
Zac Medico 501fc7a248 template: fix KeyError: 'undefined variable: 0 (#27972)
* template: fix KeyError: 'undefined variable: 0

For compatibility with the Context.get_all() implementation
in jinja 2.9, make AnsibleJ2Vars implement collections.Mapping.
Also, make AnsibleJ2Template.newcontext() handle dict type
for the 'vars' parameter.

See: d67f0fd4cc
Fixes: https://github.com/ansible/ansible/issues/20494

* add units/template/test_vars

* intg tests for jinja-2.9 issues like 20494

test cases here are based on
https://github.com/ansible/ansible/issues/20494#issue-202108318
7 years ago
..
cli Support multiple vault passwords (#22756) 7 years ago
contrib Update vmware_inventory (#26308) 7 years ago
errors test/: PEP8 compliancy (#24803) 7 years ago
executor Remove automatic use of system six 7 years ago
inventory INI inventory plugin: add documentation about variable types (#25798) 7 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 9 years ago
mock Support multiple vault passwords (#22756) 7 years ago
module_utils [cloud] Add more configurable backoff implementations to CloudRetry/AWSRetry (#27251) 7 years ago
modules nxos_bgp_neighbor_af does not want required_together (#26370) 7 years ago
parsing pylint fixes for vault related code (#27721) 7 years ago
playbook Fix undefined variables, basestring usage, and some associated python3 issues 7 years ago
plugins Disable abstract-class-instantiated for smoketests 7 years ago
template template: fix KeyError: 'undefined variable: 0 (#27972) 7 years ago
utils test/: PEP8 compliancy (#24803) 7 years ago
vars Fix spelling mistakes (comments only) (#25564) 7 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
conftest.py Fix bugs in ansible-test units command. (#24044) 8 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 7 years ago