cassandra_cluster = (['127.0.0.1'], 35391), keyspace = '7502d937095e9a06cba7'
@pytest.fixture
def swh_storage_backend_config(cassandra_cluster, keyspace):
(hosts, port) = cassandra_cluster
storage_config = dict(
cls="cassandra",
hosts=hosts,
port=port,
keyspace=keyspace,
journal_writer={"cls": "memory"},
objstorage={"cls": "memory"},
)
yield storage_config
storage = get_storage(**storage_config)
for table in TABLES:
> storage._cql_runner._session.execute('TRUNCATE TABLE "%s"' % table)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_cassandra.py:185:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cassandra/cluster.py:2618: in cassandra.cluster.Session.execute
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E cassandra.InvalidRequest: Error from server: code=2200 [Invalid query] message="table extid does not exist"
cassandra/cluster.py:4877: InvalidRequest
TEST RESULT
TEST RESULT
- Run At
- Jan 8 2021, 2:20 PM