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/common/validation
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
..
test_check_missing_parameters.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_mutually_exclusive.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_required_arguments.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_required_by.py test: fix check_required_by (#84153) 1 year ago
test_check_required_if.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_required_one_of.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_required_together.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_type_bits.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_type_bool.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_type_bytes.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_type_dict.py Deprecate remaining safe evals (#83293) 1 year ago
test_check_type_float.py Update triple single quotes to triple double quotes (#84099) 1 year ago
test_check_type_int.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_type_jsonarg.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_type_list.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_type_path.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_type_raw.py Require `from __future__ import annotations` (#81902) 2 years ago
test_check_type_str.py [stable-2.19] Backward-compatible None handling in template concat and argspec str (#85652) (#85663) 4 months ago
test_count_terms.py Require `from __future__ import annotations` (#81902) 2 years ago