Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_kafka_writer::test_storage_direct_writer_anonymized
Failed

TEST RESULT

Run At
Mar 11 2021, 3:13 PM
Details
kafka_prefix = 'zojblblzpy', kafka_server = '127.0.0.1:41371' consumer = <cimpl.Consumer object at 0x7f56dfc3f9d8> def test_storage_direct_writer_anonymized( kafka_prefix: str, kafka_server, consumer: Consumer ): writer_config = { "cls": "kafka", "brokers": [kafka_server], "client_id": "kafka_writer", "prefix": kafka_prefix, "anonymize": True, } storage_config: Dict[str, Any] = { "cls": "pipeline", "steps": [{"cls": "memory", "journal_writer": writer_config},], } storage = get_storage(**storage_config) expected_messages = 0 for obj_type, objs in TEST_OBJECTS.items(): if obj_type == "origin_visit": # these have non-consistent API and are unrelated with what we # want to test here continue > method = getattr(storage, obj_type + "_add") E AttributeError: 'InMemoryStorage' object has no attribute 'extid_add' .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_kafka_writer.py:116: AttributeError