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
Matt Davis 2dcd35b692
[stable-2.19] Backward-compatible None handling in template concat and argspec str (#85652) (#85663)
* Backward-compatible None handling in template concat and argspec str (#85652)

* templating coerces None to empty string on multi-node result

* avoid simple cases of embedded `None` in multi-node string concatenated template results ala <=2.18
* single-node template results preserve NoneType

* add None->empty str equivalency to argspec validation

* fix integration tests
* remove conversion error message check from apt_repository test
* remove error message check on `None` value for required str argspec in roles_arg_spec test (now logically-equivalent to empty string)

* explanatory comment for None->empty str coalesce

(cherry picked from commit e3c9908679)

* eliminate None template nodes in _flatten_nodes (#85676)

* defers value or concat choice until Nones are gone
* fixes None -> empty string for TemplateModule cases
* add tests

(cherry picked from commit 5345ac9911)
5 months ago
..
_internal [stable-2.19] Backward-compatible None handling in template concat and argspec str (#85652) (#85663) 5 months ago
_vendor Require `from __future__ import annotations` (#81902) 2 years ago
ansible_test ansible-test - Fix option filtering (#85182) 7 months ago
cli deprecate esoteric/undocumented playbook syntaxes (#85378) 6 months ago
config [stable-2.19] Ensure config env/ini values are tagged (#85404) (#85414) 6 months ago
errors Clean up TE error handling, wrap sigalrm handler (#85232) 7 months ago
executor [stable-2.19] Short-circuit legacy network module prefix->action mapping (#85406) (#85413) 6 months ago
galaxy Templating overhaul, implement Data Tagging (#84621) 9 months ago
inventory Templating overhaul, implement Data Tagging (#84621) 9 months ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 11 years ago
mock Clean up TE error handling, wrap sigalrm handler (#85232) 7 months ago
module_utils [stable-2.19] Backward-compatible None handling in template concat and argspec str (#85652) (#85663) 5 months ago
modules Add type annotations to set_module_args (#85329) 6 months ago
parsing adjust PluginInfo to use PluginType enum (#85277) 7 months ago
playbook [stable-2.19] Fixed string type in tags fieldattribute (#84655) (#85452) 5 months ago
plugins [stable-2.19] Fix paramiko deprecation unit test (#85573) (#85574) 5 months ago
regex Remove Python 2.x compat from unit tests (#82109) 2 years ago
template deprecate invalid variable names in inventory (#85377) 6 months ago
test_utils DTFIX recategorization and error/warning refactor (#85181) 7 months ago
utils Encryptedstring redact fixes (#85390) 6 months ago
vars Templating overhaul, implement Data Tagging (#84621) 9 months ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
conftest.py Add missing warning methods and args (#85225) 7 months ago
controller_only_conftest.py recategorize pass over DTFIX-MERGE entries post b4 (#85155) 8 months ago
requirements.txt Add typing_extensions for core unit tests on <3.11 (#84865) 10 months ago
test_context.py Require `from __future__ import annotations` (#81902) 2 years ago
test_no_tty.py Require `from __future__ import annotations` (#81902) 2 years ago