swh_storage_backend_config = {'check_config': {'check_write': True}, 'cls': 'local', 'db': "dbname=storage user=postgres host=127.0.0.1 port=14622 options=''", 'journal_writer': {'cls': 'memory'}, ...}
@pytest.fixture
def swh_storage(swh_storage_backend_config):
> return get_storage(**swh_storage_backend_config)
.tox/py3/lib/python3.7/site-packages/swh/storage/pytest_plugin.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/storage/__init__.py:66: in get_storage
if not storage.check_config(**check_config):
.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/postgresql/storage.py:152: in check_config
if not db.check_dbversion():
.tox/py3/lib/python3.7/site-packages/swh/storage/postgresql/db.py:1348: in check_dbversion
dbversion = self.dbversion()["version"]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.postgresql.db.Db object at 0x7f0a472862b0>
def dbversion(self):
with self.transaction() as cur:
> cur.execute(f"SELECT {', '.join(self.dbversion_cols)} FROM dbversion")
E psycopg2.errors.UndefinedTable: relation "dbversion" does not exist
E LINE 1: SELECT version, release, description FROM dbversion
E ^
.tox/py3/lib/python3.7/site-packages/swh/storage/postgresql/db.py:1344: UndefinedTable
TEST RESULT
TEST RESULT
- Run At
- Jan 20 2021, 2:09 PM