self = <swh.storage.tests.test_storage.TestStorage object at 0x7f45ba4c42b0>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f45ba4c43c8>
def test_snapshot_add_many_incremental(self, swh_storage):
> actual_result = swh_storage.snapshot_add([data.complete_snapshot])
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:2368:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/storage/validate.py:90: in snapshot_add
return self.storage.snapshot_add(snapshots)
.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/storage/metrics.py:77: in d
r = 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:687: in snapshot_add
if not db.snapshot_exists(snapshot.id, cur):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.db.Db object at 0x7f45b8d1bb70>
snapshot_id = b'ne\xb8cc\x95;x\r\x92\xb0\xa9(\xf3\xe8\xfc\xdd\x10\xdb6'
cur = <cursor object at 0x7f478e6b1900; closed: -1>
def snapshot_exists(self, snapshot_id, cur=None):
"""Check whether a snapshot with the given id exists"""
cur = self._cursor(cur)
> cur.execute("""SELECT 1 FROM snapshot where id=%s""", (snapshot_id,))
E psycopg2.errors.UndefinedTable: relation "snapshot" does not exist
E LINE 1: SELECT 1 FROM snapshot where id='\x6e65b86363953b780d92b0a92...
E ^
.tox/py3/lib/python3.7/site-packages/swh/storage/db.py:201: UndefinedTable
TEST RESULT
TEST RESULT
- Run At
- May 20 2020, 9:28 AM