Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.objstorage.tests.test_objstorage_api.TestRemoteObjStorage::test_delete_missing
Failed

TEST RESULT

Run At
Aug 9 2022, 7:04 PM
Details
self = <swh.objstorage.tests.test_objstorage_api.TestRemoteObjStorage testMethod=test_delete_missing> def test_delete_missing(self): self.storage.allow_delete = True content, obj_id = self.hash_content(b"missing_content_to_delete") with self.assertRaises(exc.Error): > self.storage.delete(obj_id) .tox/py3/lib/python3.7/site-packages/swh/objstorage/tests/objstorage_testing.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/core/api/__init__.py:183: in meth_ return self._post(meth._endpoint_path, post_data) .tox/py3/lib/python3.7/site-packages/swh/core/api/__init__.py:278: in _post return self._decode_response(response) .tox/py3/lib/python3.7/site-packages/swh/core/api/__init__.py:370: in _decode_response self.raise_for_status(response) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def raise_for_status(self, response) -> None: """check response HTTP status code and raise an exception if it denotes an error; do nothing otherwise """ status_code = response.status_code status_class = response.status_code // 100 if status_code == 404: > raise RemoteException(payload="404 not found", response=response) E swh.core.api.RemoteException: 404 not found .tox/py3/lib/python3.7/site-packages/swh/core/api/__init__.py:324: RemoteException