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
kaorihinata 39cfb63be6
Allow no_log=False to silence the no_log warnings for module parameters (#64733) (#67439)
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
(cherry picked from commit 3ca4580cb4)
6 years ago
..
cli Fix using a URL for galaxy collection install (#65272) (#65432) 6 years ago
compat Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
config config manager str type vault source (#65023) (#65090) 6 years ago
contrib Fix vmware_inventory unit tests so they run. 7 years ago
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 7 years ago
executor Fix network action plugin load in collection (#65849) 6 years ago
galaxy [stable-2.9] Don't remove trailing / on galaxy api URLS (#63294) 6 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 11 years ago
mock Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
module_utils Allow no_log=False to silence the no_log warnings for module parameters (#64733) (#67439) 6 years ago
modules nxos_interfaces: RMB state fixes (#63960) (#67173) 6 years ago
parsing Add a representer for AnsibleUnsafeBytes (#62598) 6 years ago
playbook Wrap CLI passwords as AnsibleUnsafeText (#63352) 6 years ago
plugins throttle: fix linear based strategies (#65422) (#66805) 6 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 7 years ago
template [stable-2.9] Do not treat AnsibleUndefined as being unsafe (#65202) (#65427) 6 years ago
utils [stable-2.9] display - remove extra new line after warning message (#65199) (#66768) 6 years ago
vars Fix inventory cache interface (#50446) 7 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
requirements.txt [stable-2.9] Fix ansible-test collections requirements installation. (#62181) 6 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 9 years ago
test_context.py Unit tests: remove unused imports (#59740) 7 years ago