summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSloane Hertel <19572925+s-hertel@users.noreply.github.com>2024-11-01 18:21:24 +0100
committerGitHub <noreply@github.com>2024-11-01 18:21:24 +0100
commit32ae3ce117e23399eac441fe7e0c00da78377cab (patch)
tree84304e12ff0c7c1373ce5a5079ae38279ae20c72
parentencrypt: raise error on passing unsupported passlib hashtype (#84186) (diff)
downloadansible-32ae3ce117e23399eac441fe7e0c00da78377cab.tar.xz
ansible-32ae3ce117e23399eac441fe7e0c00da78377cab.zip
Remove encrypt unit tests for undocumented algorithms, which are disallowed in 2.19. (#84219)
-rw-r--r--test/units/utils/test_encrypt.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/units/utils/test_encrypt.py b/test/units/utils/test_encrypt.py
index 4683b816b4..11fb9e968e 100644
--- a/test/units/utils/test_encrypt.py
+++ b/test/units/utils/test_encrypt.py
@@ -81,13 +81,6 @@ def test_password_hash_filter_passlib():
assert (get_encrypted_password("123", "sha512", salt="12345678", rounds=5000) ==
"$6$12345678$LcV9LQiaPekQxZ.OfkMADjFdSO2k9zfbDQrHPVcYjSLqSdjLYpsgqviYvTEP/R41yPmhH3CCeEDqVhW1VHr3L.")
- assert get_encrypted_password("123", "crypt16", salt="12") == "12pELHK2ME3McUFlHxel6uMM"
-
- # Try algorithm that uses a raw salt
- assert get_encrypted_password("123", "pbkdf2_sha256")
- # Try algorithm with ident
- assert get_encrypted_password("123", "pbkdf2_sha256", ident='invalid_ident')
-
@pytest.mark.skipif(not encrypt.PASSLIB_AVAILABLE, reason='passlib must be installed to run this test')
def test_do_encrypt_passlib():