summaryrefslogtreecommitdiff
path: root/oslo_utils/tests/test_strutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_utils/tests/test_strutils.py')
-rw-r--r--oslo_utils/tests/test_strutils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/oslo_utils/tests/test_strutils.py b/oslo_utils/tests/test_strutils.py
index e015b2e..f7efcd9 100644
--- a/oslo_utils/tests/test_strutils.py
+++ b/oslo_utils/tests/test_strutils.py
@@ -459,6 +459,9 @@ class MaskPasswordTestCase(test_base.BaseTestCase):
payload = """body: {"rescue": {"password": "1234567"}}"""
expected = """body: {"rescue": {"password": "***"}}"""
self.assertEqual(expected, strutils.mask_password(payload))
+ payload = """body: {"rescue": {"encryption_key_id": "1234567"}}"""
+ expected = """body: {"rescue": {"encryption_key_id": "***"}}"""
+ self.assertEqual(expected, strutils.mask_password(payload))
def test_xml_message(self):
payload = """<?xml version="1.0" encoding="UTF-8"?>