mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 16:12:09 +02:00
Provide better decryption errors for single vault values (#72362)
Fixes #72276 Fixes #72281
This commit is contained in:
@@ -134,7 +134,7 @@ class TestConfigManager:
|
||||
def test_entry_as_vault_var(self):
|
||||
class MockVault:
|
||||
|
||||
def decrypt(self, value):
|
||||
def decrypt(self, value, filename=None, obj=None):
|
||||
return value
|
||||
|
||||
vault_var = AnsibleVaultEncryptedUnicode(b"vault text")
|
||||
@@ -147,7 +147,7 @@ class TestConfigManager:
|
||||
@pytest.mark.parametrize("value_type", ("str", "string", None))
|
||||
def test_ensure_type_with_vaulted_str(self, value_type):
|
||||
class MockVault:
|
||||
def decrypt(self, value):
|
||||
def decrypt(self, value, filename=None, obj=None):
|
||||
return value
|
||||
|
||||
vault_var = AnsibleVaultEncryptedUnicode(b"vault text")
|
||||
|
||||
Reference in New Issue
Block a user