Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scanner.tests.test_data::test_add_origin
Failed

TEST RESULT

Run At
Aug 22 2021, 6:42 PM
Details
event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False> live_server = <[AttributeError("'LiveServer' object has no attribute 'url'") raised in repr()] LiveServer object at 0x7fd67b4186a0> aiosession = <aiohttp.client.ClientSession object at 0x7fd67ea1ee80> source_tree = Directory(id=0a7b61ef5780b03aa274d11069564980246445ce, entries=[b'some-binary', b'link-to-another-quote', b'foo', b'toexclude', b'bar', b'link-to-foo']) nodes_data = {CoreSWHID(namespace='swh', scheme_version=1, object_id=b'\n{a\xefW\x80\xb0:\xa2t\xd1\x10iVI\x80$dE\xce', object_type=...=#\xf8\xb7ZG\xe7\xa0\x19e\xdc\xdc\x96F\x8c', object_type=<ObjectType.CONTENT: 'cnt'>): {'origin': None, 'known': None}} def test_add_origin(event_loop, live_server, aiosession, source_tree, nodes_data): api_url = url_for("index", _external=True) init_merkle_node_info(source_tree, nodes_data, {"known", "origin"}) client = Client(api_url, aiosession) > event_loop.run_until_complete(add_origin(source_tree, nodes_data, client)) .tox/py3/lib/python3.7/site-packages/swh/scanner/tests/test_data.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/asyncio/base_events.py:584: in run_until_complete return future.result() .tox/py3/lib/python3.7/site-packages/swh/scanner/data.py:60: in add_origin node_ori = await client.get_origin(node.swhid()) .tox/py3/lib/python3.7/site-packages/swh/scanner/client.py:45: in get_origin error_response(resp.reason, resp.status, endpoint) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ reason = 'OK', status_code = 200 api_url = 'http://localhost:6600/graph/randomwalk/swh:1:dir:0a7b61ef5780b03aa274d11069564980246445ce/ori/?direction=backward&limit=-1&resolve_origins=true' def error_response(reason: Optional[Any], status_code: int, api_url: str): error_msg = f"{status_code} {reason}: '{api_url}'" > raise APIError(error_msg) E swh.scanner.exceptions.APIError: "200 OK: 'http://localhost:6600/graph/randomwalk/swh:1:dir:0a7b61ef5780b03aa274d11069564980246445ce/ori/?direction=backward&limit=-1&resolve_origins=true'" .tox/py3/lib/python3.7/site-packages/swh/scanner/exceptions.py:32: APIError