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 1b947eaf92
arg_spec - Return aliases in validation result and update aliases (#77576)
When looking up the `no_log` setting for a parameter that is an alias in
`AnsibleModule._log_invocation()`, the alias value will always be an
empty dictionary since `self.aliases` on the `AnsibleModule` instance is
never updated after initialization. Since the `no_log` setting is on the
canonical parameter not the alias, an incorrect warning is issued if the
parameter matches `PASSWORD_MATCH`.

This PR returns the aliases dictionary as an attribute of the
`ValidationResult` and updates the `aliases` attribute on the
`AnsibleModule` instance.
2 years ago
..
arg_spec arg_spec - Return aliases in validation result and update aliases (#77576) 2 years ago
parameters Use ArgumentSpecValidator in AnsibleModule (#73703) 4 years ago
process Clarify get_bin_path error message (#75544) 3 years ago
text Relocate misplaced unit tests. 3 years ago
validation Fix duplicate unit test function names. (#77115) 3 years ago
warnings Clean up unit tests to prepare for pylint update. (#75473) 3 years ago
__init__.py Add tests for module_utils.common.collections 6 years ago
test_collections.py AnsibleVaultEncryptedUnicode should be considered a string (#71609) 4 years ago
test_dict_transformations.py recursive_diff: handle error when parameters are not dict (#74801) 3 years ago
test_locale.py Remove obsolete units.compat.mock compat layer. (#77118) 3 years ago
test_network.py [module_utils] make to_bits actually return (#74409) 3 years ago
test_sys_info.py Remove obsolete units.compat.mock compat layer. (#77118) 3 years ago
test_utils.py Cleanups to the common.sys_info API 6 years ago