mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-10 18:34:03 -07:00
Update the use of no_log values to cover everything that heuristic_log_sanitize does.
Fixes #12792
This commit is contained in:
parent
ec56b29ba4
commit
6e5055e786
5 changed files with 229 additions and 149 deletions
|
@ -85,18 +85,6 @@ class TestHeuristicLogSanitize(unittest.TestCase):
|
|||
self.assertTrue(ssh_output.endswith("}"))
|
||||
self.assertIn(":********@foo.com/data'", ssh_output)
|
||||
|
||||
|
||||
class TestStripNoLog(unittest.TestCase):
|
||||
def setUp(self):
|
||||
data = ''
|
||||
|
||||
def test_return_strings(self):
|
||||
pass
|
||||
|
||||
def test_strip_no_log(self):
|
||||
pass
|
||||
|
||||
class TestAnsibleModuleStripNoLogValues(unittest.TestCase):
|
||||
pass
|
||||
|
||||
|
||||
def test_hides_parameter_secrets(self):
|
||||
output = heuristic_log_sanitize('token="secret", user="person", token_entry="test=secret"', frozenset(['secret']))
|
||||
self.assertNotIn('secret', output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue