mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Update the use of no_log values to cover everything that heuristic_log_sanitize does.
Fixes #12792
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user