self = <swh.storage.tests.test_storage.TestStorage object at 0x7fd8e3796d30>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7fd8e37a5048>
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:151:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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 0x7fd8e3796a20>
@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:137: UndefinedTable
TEST RESULT
TEST RESULT
- Run At
- Apr 21 2020, 12:34 PM