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
Sam Doran 4bde2d8a97
[stable-2.12] arg_spec - Return aliases in validation result and update aliases (#77576) (#77602)
* [stable-2.12] 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.
(cherry picked from commit 1b947eaf92)

Co-authored-by: Sam Doran <github@samdoran.com>

* Rewrite test comprehension for Python 2.6

* No need for list inside the dict constructor
4 years ago
..
ansible_test ansible-test - Move code from _data to _util. (#75495) 5 years ago
integration Prevent losing unsafe from lookups (#77609) (#77651) 4 years ago
lib/ansible_test [stable-2.12] Fix sanity test crash. 4 years ago
sanity unarchive: fix io_buffer_size option, remove ignore.txt entry (#77271) (#77311) 4 years ago
support Remove incidental_win_security_policy (#75654) 4 years ago
units [stable-2.12] arg_spec - Return aliases in validation result and update aliases (#77576) (#77602) 4 years ago
utils/shippable [stable-2.12] ansible-test - Managed venv fixes. (#77100) 4 years ago