summaryrefslogtreecommitdiffstats
path: root/test/units/config
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2020-11-18 21:25:32 +0100
committerGitHub <noreply@github.com>2020-11-18 21:25:32 +0100
commitf8ef34672b961a95ec7282643679492862c688ec (patch)
treed98946bfa62390489cd304aa2ccf092b79e5afa1 /test/units/config
parentarg_spec - rework _check_arguments() (#72447) (diff)
downloadansible-f8ef34672b961a95ec7282643679492862c688ec.tar.xz
ansible-f8ef34672b961a95ec7282643679492862c688ec.zip
Provide better decryption errors for single vault values (#72362)
Fixes #72276 Fixes #72281
Diffstat (limited to 'test/units/config')
-rw-r--r--test/units/config/test_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/config/test_manager.py b/test/units/config/test_manager.py
index 15c9c1fb50..a957e39749 100644
--- a/test/units/config/test_manager.py
+++ b/test/units/config/test_manager.py
@@ -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")