swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_deposit_loading_failure_t0/loader.yml'
requests_mock_datadir_missing_one = <requests_mock.mocker.Mocker object at 0x7f6a35b70a20>
def test_deposit_loading_failure_to_retrieve_1_artifact(
swh_config, requests_mock_datadir_missing_one
):
"""Deposit with missing artifact ends up with an uneventful/partial visit
"""
# private api url form: 'https://deposit.s.o/1/private/hal/666/raw/'
url = "some-url-2"
deposit_id = 666
loader = DepositLoader(url, deposit_id)
> actual_load_status = loader.load()
.tox/py3/lib/python3.7/site-packages/swh/loader/package/deposit/tests/test_deposit.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/loader/package/deposit/loader.py:136: in load
self.storage.metadata_authority_add(**authority)
.tox/py3/lib/python3.7/site-packages/swh/storage/retry.py:92: in __getattr__
return getattr(self.storage, key)
.tox/py3/lib/python3.7/site-packages/swh/storage/filter.py:43: in __getattr__
return getattr(self.storage, key)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.buffer.BufferingProxyStorage object at 0x7f6a35b683c8>
key = 'metadata_authority_add'
def __getattr__(self, key):
if key.endswith("_add"):
object_type = key.rsplit("_", 1)[0]
if object_type in self.object_types:
return partial(self.object_add, object_type=object_type, keys=["id"],)
if key == "storage":
raise AttributeError(key)
> return getattr(self.storage, key)
E AttributeError: 'Storage' object has no attribute 'metadata_authority_add'
.tox/py3/lib/python3.7/site-packages/swh/storage/buffer.py:68: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Apr 29 2020, 4:09 PM