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/_internal/templating
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
..
fixtures Templating overhaul, implement Data Tagging (#84621) 9 months ago
__init__.py Templating overhaul, implement Data Tagging (#84621) 9 months ago
conftest.py DTFIX recategorization and error/warning refactor (#85181) 7 months ago
test_access.py Templating overhaul, implement Data Tagging (#84621) 9 months ago
test_common_.py Templating overhaul, implement Data Tagging (#84621) 9 months ago
test_datatag.py recategorize pass over DTFIX-MERGE entries post b4 (#85155) 8 months ago
test_jinja_bits.py Jinja sandbox refinement (#85385) 6 months ago
test_jinja_plugins.py Templating overhaul, implement Data Tagging (#84621) 9 months ago
test_lazy_containers.py [stable-2.19] Fix slicing of tuples in templating (#85608) (#85661) 5 months ago
test_templar.py [stable-2.19] Backward-compatible None handling in template concat and argspec str (#85652) (#85663) 5 months ago
test_template_utilities.py Templating overhaul, implement Data Tagging (#84621) 9 months ago
test_utils.py Templating overhaul, implement Data Tagging (#84621) 9 months ago