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 crypto modules: fix sanity errors (#60046) 2019-08-18 05:37:57 +02:00
aws Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
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 docker: fix sanity errors (#60047) 2019-08-09 23:50:11 +02:00
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 keycloak: improve testability of authentification (#57611) 2019-08-29 10:15:47 +02:00
json_utils Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
net_tools unit tests: remove unused imports (#59636) 2019-07-26 10:53:31 -04:00
network Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
parsing
postgresql Postgres module_utils: add get_connect_params + unit tests (#58067) 2019-06-19 06:49:19 -07:00
remote_management Adding dell ome device_info module (#53438) 2019-06-10 06:41:48 -04:00
urls ansible-galaxy - define multiple galaxy instances in ansible.cfg (#60553) 2019-08-21 07:49:05 +10:00
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 Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
test_database.py Fix unit test parametrize order on Python 3.5. 2018-09-17 22:45:42 -07:00
test_distribution_version.py Get minor version number for CentOS and Debian (#57814) 2019-06-28 19:21:35 -04:00
test_distro.py Update distro unit test (#55003) 2019-04-08 16:26:31 -04:00
test_ec2.py Sanity test fixups - AWS related tests (#64093) 2019-10-30 09:48:59 -07:00
test_hetzner.py Hetzner failover IP: refactoring (#56203) 2019-05-10 08:33:51 +02:00
test_known_hosts.py unit tests: remove unused imports (#59636) 2019-07-26 10:53:31 -04:00
test_kubevirt.py kubevirt: more unit tests (#57739) 2019-06-25 20:06:13 +10:00
test_netapp.py Improved netapp module utility for E-Series. (#59527) 2019-08-01 13:24:38 -04:00
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 Add optional headers to utm modules (#49856) 2019-01-17 19:06:50 +05:30
test_vmware.py VMware: not ssl.SSLContext if validate_certs false (#57185) 2019-09-09 21:41:46 +05:30