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/module_utils
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)
4 months ago
..
_internal default _ansible_tracebacks_for to [] when not specified (#85427) (#85453) 5 months ago
basic Add temporary module result serialization hook (#85609) (#85621) 4 months ago
common [stable-2.19] Backward-compatible None handling in template concat and argspec str (#85652) (#85663) 4 months ago
compat 🔥 Remove Python 2 datetime compat fallbacks 9 months ago
datatag adjust PluginInfo to use PluginType enum (#85277) 6 months ago
facts Exceptions clean up (#85176) 6 months ago
json_utils Remove Python 2.x compat from unit tests (#82109) 2 years ago
parsing Fixed broken tests (#84088) 1 year ago
urls Exceptions clean up (#85176) 6 months ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
conftest.py Templating overhaul, implement Data Tagging (#84621) 8 months ago
test_api.py Require `from __future__ import annotations` (#81902) 2 years ago
test_connection.py Require `from __future__ import annotations` (#81902) 2 years ago
test_distro.py Remove unused/unreachable unit test code (#82160) 2 years ago
test_text.py Remove Python 2 compat (via six) from unit tests 2 years ago