Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_storage.TestStorage::test_origin_visit_get_by__unknown_origin
Failed

TEST RESULT

Run At
Apr 21 2020, 12:34 PM
Details
self = <swh.storage.tests.test_storage.TestStorage object at 0x7fd903c35e80> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7fd903c35a20> def test_origin_visit_get_by__unknown_origin(self, swh_storage): > assert swh_storage.origin_visit_get_by("foo", 10) is None .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1960: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/metrics.py:24: in d return f(*a, **kw) .tox/py3/lib/python3.7/site-packages/swh/core/db/common.py:62: in _meth return meth(self, *args, db=db, cur=cur, **kwargs) .tox/py3/lib/python3.7/site-packages/swh/storage/storage.py:950: in origin_visit_get_by ori_visit = db.origin_visit_get(origin, visit, cur) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.db.Db object at 0x7fd9087bc470>, origin_id = 'foo' visit_id = 10, cur = <cursor object at 0x7fdab4ce1be8; closed: -1> def origin_visit_get(self, origin_id, visit_id, cur=None): """Retrieve information on visit visit_id of origin origin_id. Args: origin_id: the origin concerned visit_id: The visit step for that origin Returns: The origin_visit information """ cur = self._cursor(cur) query = """\ SELECT %s FROM origin_visit INNER JOIN origin ON origin.id = origin_visit.origin WHERE origin.url = %%s AND visit = %%s """ % ( ", ".join(self.origin_visit_select_cols) ) > cur.execute(query, (origin_id, visit_id)) E psycopg2.errors.UndefinedTable: relation "origin_visit" does not exist E LINE 2: FROM origin_visit E ^ .tox/py3/lib/python3.7/site-packages/swh/storage/db.py:574: UndefinedTable