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
Sam Doran e889b1063f
arg_spec - rework _check_arguments() (#72447)
* Move _syslog_facitily to __init__
  No good reason it should not be set for each object

* Move internal property setting to private method
* Create check_arguments() function
* Remove unused import
* Rename function to better match its behavior
  Change the behavior to return a set, either empty or populated, with unsupported keys.
  Accept legal_inputs as optional which will not required calling handle_aliases before calling
  get_unsupported_parameters().

* Add changelog
* Rework function behavior and documentation
  I realized I missed the original intent of this method when moving it to a function. It
  is meant to compared the parameter keys to legal inputs always, not compare
  parameter keys to argument spec keys, even though the argument spec keys should
  be a subset of legal inputs.

* Add tests
* Fix typo.
* Set internal properties when handling suboptions
4 years ago
..
parameters arg_spec - rework _check_arguments() (#72447) 4 years ago
process "Fix" test_get_bin_path by changing mock order (#67730) 5 years ago
text Expose to_<str> as a public function (#68965) 5 years ago
validation Fix and add tests for some module_utils.common.validation (#67771) 5 years ago
warnings Deprecation revisited (#69926) 5 years ago
__init__.py Add tests for module_utils.common.collections 7 years ago
test_collections.py AnsibleVaultEncryptedUnicode should be considered a string (#71609) 4 years ago
test_dict_transformations.py Add intentional unit tests for basic._set_cwd and common.dict_merge (#70283) 4 years ago
test_network.py Move network utils that are used by AWS modules (#45579) 6 years ago
test_removed.py unittests for module_utils.common.removed.removed_module function (#57214) 6 years ago
test_sys_info.py Discover Flatcar Linux properly for hostname (#69627) 5 years ago
test_utils.py Cleanups to the common.sys_info API 6 years ago