ansible/test/lib/ansible_test/_data
Sam Doooran 5ecfb19cad
arg_spec - move validator lookup method to a function (#72667)
* arg_spec - move type checking lookup method to a function

* Change get_wanted_type name and behavior

Change the name to get_validator to bette describe what it is doing.

Change the interface to always return a value. This lines up with the behavior of get_*
functions always returning something or None and check_* functions raising an
Exception if something went wrong during the check.

* Add param to check_type_str()

Not meant to be a long term fix, but gets tests passing. More work is needed to figure
out how to solve this cleanly.

* Remove private attribute mapping types to validator

Since the function that needs it has moved to parameters.py, there is no need to have it as
a attribute of AnsibleModule.

Update tests that were referencing the private attribute.

* Use private method for 'str' type

To avoid having to put the string conversion warning behavior in the check_type_str() method,
use the private _check_type_str() method for 'str' type.

Import CHECK_ARGUMENT_TYPES_DISPATCHER for backwards compalitibility and store it as
a private attribute.

Revert changes to support plugins that are referencing serf._CHECK_ARGUMENT_TYPES_DISPATCHER.

* Add changelog

* Change function name to better reflect its... function

* Change dict name to better reflect its contents

CHECK_ARGUMENT_TYPES_DISPATCHER --> DEFAULT_TYPE_VALIDATORS

* Fix changelog
2020-12-17 17:15:00 -05:00
..
cli
completion Bump centos6 image for pinned junit-xml dep 2020-12-02 14:02:32 -08:00
injector ansible-test - prefer venv over virtualenv on Python 3 (#73000) 2020-12-17 10:51:42 -05:00
playbooks Internally redirect win modules to collection name (#68317) 2020-03-23 11:14:21 -05:00
pytest/plugins fix collection package root location under pytest >=6.0.0 (#70963) 2020-08-03 17:31:32 -07:00
requirements Update ansible-test pylint Python support. (#72972) 2020-12-15 10:27:32 -08:00
sanity arg_spec - move validator lookup method to a function (#72667) 2020-12-17 17:15:00 -05:00
setup ansible-test - prefer venv over virtualenv on Python 3 (#73000) 2020-12-17 10:51:42 -05:00
ansible.cfg
collection_detail.py Add deprecated removed_in_version and deprecated_aliases version tests (#66920) 2020-05-13 13:58:09 -07:00
coveragerc
cryptography-constraints.txt Fix cryptography constraints in ansible-test. (#72914) 2020-12-09 10:46:05 -08:00
inventory
pytest.ini Remove em dash from the pytest configuration file 2020-09-14 09:02:48 -07:00
quiet_pip.py Fix ansible-test pip filter on Fedora 32. 2020-06-10 09:37:01 -07:00
sslcheck.py Fix cryptography constraints in ansible-test. (#72914) 2020-12-09 10:46:05 -08:00
versions.py Ignore warnings in ansible-test environment check. 2020-01-13 16:16:55 -08:00
virtualenvcheck.py
yamlcheck.py