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
Sam Doran 91fb18bf31
[stable-2.13] arg_spec - Return aliases in validation result and update aliases (#77576) (#77601)
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.
(cherry picked from commit 1b947eaf92)

Co-authored-by: Sam Doran <github@samdoran.com>
4 years ago
..
_vendor Remove obsolete units.compat.mock compat layer. (#77118) 4 years ago
ansible_test Remove Shippable CI provider from ansible-test. 5 years ago
cli Remove obsolete units.compat.mock compat layer. (#77118) 4 years ago
compat Remove obsolete units.compat.mock compat layer. (#77118) 4 years ago
config Provide better decryption errors for single vault values (#72362) 5 years ago
errors Remove obsolete units.compat.mock compat layer. (#77118) 4 years ago
executor Remove obsolete units.compat.mock compat layer. (#77118) 4 years ago
galaxy Get git executable for collections in git repos (#77493) (#77500) 4 years ago
inventory Clean up unit test boilerplate. 6 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 11 years ago
mock Remove obsolete units.compat.mock compat layer. (#77118) 4 years ago
module_utils [stable-2.13] arg_spec - Return aliases in validation result and update aliases (#77576) (#77601) 4 years ago
modules unarchive: fix io_buffer_size option, remove ignore.txt entry (#77271) 4 years ago
parsing Remove collections compat from controller code. 4 years ago
playbook Remove collections compat from controller code. 4 years ago
plugins winrm - ensure callers PATH for kinit is set (#77401) (#77404) 4 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 7 years ago
template Remove obsolete units.compat.mock compat layer. (#77118) 4 years ago
utils Remove obsolete units.compat.mock compat layer. (#77118) 4 years ago
vars Remove obsolete units.compat.mock compat layer. (#77118) 4 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
requirements.txt ansible-test - split controller/target testing (#75605) 4 years ago
test_constants.py Remove some constants.py deprecated items (#70466) 5 years ago
test_context.py Clean up unit test boilerplate. 6 years ago