1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix detection of fips mode in test_do_encrypt_md5

This commit is contained in:
Toshio Kuratomi 2014-11-17 13:32:42 -08:00
parent 9a0f8f0158
commit 4ae2d58d72

View file

@ -464,7 +464,7 @@ class TestUtils(unittest.TestCase):
raise AssertionError('Incorrect exception, expected AnsibleError')
def test_do_encrypt_md5(self):
if self._is_fips:
if self._is_fips():
raise SkipTest('MD5 unavailable on FIPS systems')
hash = ansible.utils.do_encrypt('ansible', 'md5_crypt', salt_size=4)
self.assertTrue(passlib.hash.md5_crypt.verify('ansible', hash))