From 32ae3ce117e23399eac441fe7e0c00da78377cab Mon Sep 17 00:00:00 2001 From: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:21:24 -0400 Subject: Remove encrypt unit tests for undocumented algorithms, which are disallowed in 2.19. (#84219) --- test/units/utils/test_encrypt.py | 7 ------- 1 file changed, 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(): -- cgit v1.2.3