ansible/test/units/module_utils
kaorihinata 3ca4580cb4 Allow no_log=False to silence the no_log warnings for module parameters (#64733)
As AnsibleModule._log_invocation is currently implemented, any parameter
with a name that matches PASSWORD_MATCH triggers the no_log warning as a
precaution against parameters that may contain sensitive data, but have not
been marked as sensitive by the module author.

This patch would allow module authors to explicitly mark the aforementioned
parameters as not sensitive thereby bypassing an erroneous warning message,
while still catching parameters which have not been marked at all by the
author.

Adds tests for various no_log states including True, False, and None (as
extracted by AnsibleModule._log_invocation) when applied to an argument with
a name that matches PASSWORD_MATCH.

Fixes: #49465 #64656
2020-01-09 16:47:57 -05:00
..
acme
aws
basic Allow no_log=False to silence the no_log warnings for module parameters (#64733) 2020-01-09 16:47:57 -05:00
cloud Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
common Properly mask no_log values is sub parameters during failure (#63405) 2019-10-14 09:20:07 -07:00
docker
ec2 Sanity test fixups - AWS related tests (#64093) 2019-10-30 09:48:59 -07:00
facts Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
gcp Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
hwc Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
identity/keycloak
json_utils Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
net_tools
network Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
parsing
postgresql
remote_management
urls
xenserver XenServer: Update docs with recent changes in XenAPI python lib and branding (#63728) 2019-10-22 21:04:16 +05:30
__init__.py
conftest.py
test_database.py
test_distribution_version.py
test_distro.py
test_ec2.py Sanity test fixups - AWS related tests (#64093) 2019-10-30 09:48:59 -07:00
test_hetzner.py
test_known_hosts.py
test_kubevirt.py
test_netapp.py
test_text.py Wrap CLI Passwords with AnsibleUnsafeText, ensure unsafe context is not lost during encode/decode (#63351) 2019-10-11 09:17:10 -05:00
test_utm_utils.py
test_vmware.py VMware: not ssl.SSLContext if validate_certs false (#57185) 2019-09-09 21:41:46 +05:30