ansible/test/units/module_utils/common
Sam Doran e889b1063f
arg_spec - rework _check_arguments() ()
* 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
2020-11-18 14:15:33 -05:00
..
parameters arg_spec - rework _check_arguments() () 2020-11-18 14:15:33 -05:00
process "Fix" test_get_bin_path by changing mock order () 2020-02-28 10:39:27 -05:00
text Expose to_<str> as a public function () 2020-04-17 07:54:00 +10:00
validation Fix and add tests for some module_utils.common.validation () 2020-03-26 18:18:56 -05:00
warnings Deprecation revisited () 2020-06-09 15:21:19 -07:00
__init__.py
test_collections.py AnsibleVaultEncryptedUnicode should be considered a string () 2020-09-03 14:54:00 -05:00
test_dict_transformations.py Add intentional unit tests for basic._set_cwd and common.dict_merge () 2020-06-25 14:45:13 -05:00
test_network.py Move network utils that are used by AWS modules () 2018-10-02 15:08:00 -04:00
test_removed.py unittests for module_utils.common.removed.removed_module function () 2019-06-03 11:12:12 -04:00
test_sys_info.py Discover Flatcar Linux properly for hostname () 2020-06-02 18:41:53 +05:30
test_utils.py Cleanups to the common.sys_info API 2019-01-03 16:21:09 -08:00