self = <swh.storage.tests.test_storage.TestStorage object at 0x7f4b1c418128>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f4b26e6a908>
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:3163:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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:63: in _meth
return meth(self, *args, db=db, cur=cur, **kwargs)
.tox/py3/lib/python3.7/site-packages/swh/storage/storage.py:1230: in metadata_authority_get
row = db.metadata_authority_get(type, url)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.db.Db object at 0x7f4b26e6a668>, type = 'deposit-client'
url = 'http:///hal/inria', cur = <cursor object at 0x7f4b177e7048; closed: 0>
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:1132: UndefinedTable
TEST RESULT
TEST RESULT
- Run At
- Apr 9 2020, 3:28 PM