Changeset View
Changeset View
Standalone View
Standalone View
swh/journal/tests/test_backfill.py
# Copyright (C) 2019 The Software Heritage developers | # Copyright (C) 2019 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import pytest | import pytest | ||||
from swh.journal.backfill import ( | from swh.journal.backfill import ( | ||||
JournalBackfiller, compute_query, PARTITION_KEY | JournalBackfiller, compute_query, PARTITION_KEY | ||||
) | ) | ||||
TEST_CONFIG = { | TEST_CONFIG = { | ||||
'brokers': ['localhost'], | 'brokers': ['localhost'], | ||||
'final_prefix': 'swh.tmp_journal.new', | 'prefix': 'swh.tmp_journal.new', | ||||
'client_id': 'swh.journal.client.test', | 'client_id': 'swh.journal.client.test', | ||||
'storage_dbconn': 'service=swh-dev', | 'storage_dbconn': 'service=swh-dev', | ||||
} | } | ||||
def test_config_ko_missing_mandatory_key(): | def test_config_ko_missing_mandatory_key(): | ||||
"""Missing configuration key will make the initialization fail | """Missing configuration key will make the initialization fail | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |