diff --git a/swh/indexer/tests/conftest.py b/swh/indexer/tests/conftest.py --- a/swh/indexer/tests/conftest.py +++ b/swh/indexer/tests/conftest.py @@ -19,6 +19,15 @@ TASK_NAMES = ['revision_intrinsic_metadata', 'origin_intrinsic_metadata'] +storage_config = { + 'cls': 'pipeline', + 'steps': [ + {'cls': 'validate'}, + {'cls': 'memory'}, + ] +} + + @pytest.fixture def indexer_scheduler(swh_scheduler): for taskname in TASK_NAMES: @@ -53,7 +62,7 @@ classes. """ - storage = get_storage('memory') + storage = get_storage(**storage_config) fill_storage(storage) with patch('swh.storage.in_memory.InMemoryStorage') as storage_mock: storage_mock.return_value = storage diff --git a/swh/indexer/tests/utils.py b/swh/indexer/tests/utils.py --- a/swh/indexer/tests/utils.py +++ b/swh/indexer/tests/utils.py @@ -19,7 +19,11 @@ BASE_TEST_CONFIG: Dict[str, Dict[str, Any]] = { 'storage': { - 'cls': 'memory', + 'cls': 'pipeline', + 'steps': [ + {'cls': 'validate'}, + {'cls': 'memory'}, + ] }, 'objstorage': { 'cls': 'memory',