mirror of
https://github.com/zebrajr/ansible.git
synced 2025-12-06 12:19:53 +01:00
Remove encrypt unit tests for undocumented algorithms, which are disallowed in 2.19. (#84219)
This commit is contained in:
parent
8784469b4c
commit
32ae3ce117
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user