Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.vault.tests.test_init::test_init_get_vault[local-VaultBackend-kwargs1]
Failed

TEST RESULT

Run At
Oct 16 2020, 7:39 PM
Details
class_name = 'local', expected_class = <class 'swh.vault.backend.VaultBackend'> kwargs = {'cache': {'args': {'args': {}, 'cls': 'memory'}}, 'db': 'something', 'scheduler': {'args': {'cls': 'remote', 'url': 'mock://url'}}, 'storage': {'args': {'cls': 'memory'}}} mock_psycopg2 = None @pytest.mark.parametrize("class_name,expected_class,kwargs", SERVER_IMPLEMENTATIONS) def test_init_get_vault(class_name, expected_class, kwargs, mock_psycopg2): > concrete_vault = get_vault(class_name, **kwargs) .tox/py3/lib/python3.7/site-packages/swh/vault/tests/test_init.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/vault/__init__.py:54: in get_vault return Vault(**kwargs) .tox/py3/lib/python3.7/site-packages/swh/vault/backend.py:75: in __init__ self.cache = VaultCache(**config["cache"]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.vault.cache.VaultCache object at 0x7fa9c4ade828> objstorage = {'args': {'args': {}, 'cls': 'memory'}} def __init__(self, **objstorage): > self.objstorage = get_objstorage(**objstorage) E TypeError: get_objstorage() missing 1 required positional argument: 'cls' .tox/py3/lib/python3.7/site-packages/swh/vault/cache.py:19: TypeError