Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
May 20 2020, 9:28 AM
Details
self = <swh.storage.tests.test_storage.TestStorage object at 0x7f45b6c2f400> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f45b8d20cf8> def test_check_config(self, swh_storage): > assert swh_storage.check_config(check_write=True) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.storage.Storage object at 0x7f45b6c82b70> @timed @db_transaction() def check_config(self, *, check_write, db=None, cur=None): if not self.objstorage.check_config(check_write=check_write): return False # Check permissions on one of the tables if check_write: check = "INSERT" else: check = "SELECT" > cur.execute("select has_table_privilege(current_user, 'content', %s)", (check,)) E psycopg2.errors.UndefinedTable: relation "content" does not exist .tox/py3/lib/python3.7/site-packages/swh/storage/storage.py:138: UndefinedTable