ansible/test/units
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
..
cli Fix using a URL for galaxy collection install (#65272) 2019-12-03 04:55:31 +10:00
compat
config config manager str type vault source (#65023) 2019-11-20 12:02:28 +10:00
contrib
errors Remove empty overridden unittest.setUp and unittest.tearDown methods. 2019-11-05 09:12:11 -08:00
executor Fix network action plugin load in collection (#65849) 2019-12-16 19:15:41 +05:30
galaxy Don't remove trailing / on galaxy api URLS (#63294) 2020-01-08 15:25:40 -05:00
inventory_test_data/group_vars
mock Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
module_utils Allow no_log=False to silence the no_log warnings for module parameters (#64733) 2020-01-09 16:47:57 -05:00
modules Fix AttributeError due to cgi.escape removal in Python 3.8. (#66040) 2020-01-09 15:28:02 -05:00
parsing Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
playbook Check if task file is specified for import_tasks (#57572) 2019-12-24 10:26:32 +05:30
plugins Fix env lookup plugin error on utf8 values (#65541) 2019-12-25 17:24:38 +05:30
regex
template Do not treat AnsibleUndefined as being unsafe (#65202) 2019-11-25 15:06:29 +01:00
utils Ensure that data within a tuple is marked as unsafe (#65918) 2020-01-07 08:41:37 -06:00
vars Remove empty setUp/tearDown/tearDownClass methods in test classes. 2019-11-06 08:14:29 -08:00
__init__.py
requirements.txt
test_constants.py
test_context.py