self = <swh.storage.tests.test_tenacious.TestTenaciousStorage object at 0x7fb88c1ee160>
swh_storage = <swh.storage.proxies.tenacious.TenaciousProxyStorage object at 0x7fb8a84c29b0>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb8a7beab00>
def test_stat_counters(self, swh_storage, sample_data):
if isinstance(swh_storage, CassandraStorage):
pytest.skip("Cassandra backend does not support stat counters")
origin = sample_data.origin
snapshot = sample_data.snapshot
revision = sample_data.revision
release = sample_data.release
directory = sample_data.directory
content = sample_data.content
expected_keys = ["content", "directory", "origin", "revision"]
# Initially, all counters are 0
swh_storage.refresh_stat_counters()
> counters = swh_storage.stat_counters()
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:3648:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.in_memory.InMemoryStorage object at 0x7fb8a84c2860>
def stat_counters(self):
> raise NotImplementedError()
E NotImplementedError
.tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:1293: NotImplementedError
TEST RESULT
TEST RESULT
- Run At
- Aug 27 2021, 11:57 AM