Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
May 20 2020, 9:28 AM
Details
self = <swh.storage.tests.test_storage.TestStorage object at 0x7f45c0005ef0> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f45c0005c50> def test_metadata_authority_add_get(self, swh_storage): actual_authority = swh_storage.metadata_authority_get( > data.metadata_authority["type"], data.metadata_authority["url"] ) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3194: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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:1338: in metadata_authority_get row = db.metadata_authority_get(type, url, cur=cur) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.db.Db object at 0x7f46bc086b70>, type = 'deposit' url = 'http://hal.inria.example.com/' cur = <cursor object at 0x7f478e6b1900; closed: -1> def metadata_authority_get(self, type: str, url: str, cur=None): cur = self._cursor(cur) cur.execute( f"SELECT {', '.join(self.metadata_authority_cols)} " f"FROM metadata_authority " f"WHERE type=%s AND url=%s", > (type, url), ) E psycopg2.errors.UndefinedTable: relation "metadata_authority" does not exist E LINE 1: SELECT type, url, metadata FROM metadata_authority WHERE typ... E ^ .tox/py3/lib/python3.7/site-packages/swh/storage/db.py:1191: UndefinedTable