Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 21 2020, 12:34 PM
Details
self = <swh.storage.tests.test_storage.TestStorage object at 0x7fd90987d0b8> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7fd903c34fd0> def test_metadata_fetcher_add_get(self, swh_storage): actual_fetcher = swh_storage.metadata_fetcher_get( > data.metadata_fetcher["name"], data.metadata_fetcher["version"] ) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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:1213: in metadata_fetcher_get row = db.metadata_fetcher_get(name, version) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.db.Db object at 0x7fd8e3668160>, name = 'swh-deposit' version = '0.0.1', cur = <cursor object at 0x7fd8e32a9048; closed: 0> def metadata_fetcher_get(self, name: str, version: str, cur=None): cur = self._cursor(cur) cur.execute( f"SELECT {', '.join(self.metadata_fetcher_cols)} " f"FROM metadata_fetcher " f"WHERE name=%s AND version=%s", > (name, version), ) E psycopg2.errors.UndefinedTable: relation "metadata_fetcher" does not exist E LINE 1: SELECT name, version, metadata FROM metadata_fetcher WHERE n... E ^ .tox/py3/lib/python3.7/site-packages/swh/storage/db.py:1096: UndefinedTable