Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/tests/test_loader.py
Show All 24 Lines | def test_build_swh_snapshot(self): | ||||
'target_type': 'revision', | 'target_type': 'revision', | ||||
} | } | ||||
} | } | ||||
}) | }) | ||||
_LOADER_TEST_CONFIG = { | _LOADER_TEST_CONFIG = { | ||||
'check_revision': {'limit': 100, 'status': False}, | 'check_revision': {'limit': 100, 'status': False}, | ||||
'content_packet_block_size_bytes': 104857600, | |||||
'content_packet_size': 10000, | |||||
'content_packet_size_bytes': 1073741824, | |||||
'content_size_limit': 104857600, | |||||
'debug': False, | 'debug': False, | ||||
'directory_packet_size': 2500, | |||||
'log_db': 'dbname=softwareheritage-log', | 'log_db': 'dbname=softwareheritage-log', | ||||
'occurrence_packet_size': 1000, | |||||
'release_packet_size': 1000, | |||||
'revision_packet_size': 10, | |||||
'save_data': False, | 'save_data': False, | ||||
'save_data_path': '', | 'save_data_path': '', | ||||
'send_contents': True, | 'temp_directory': '/tmp', | ||||
anlambert: You can safely remove that entry too as its use is dropped in D2403 | |||||
Done Inline Actionsright! thanks! ardumont: right! thanks! | |||||
'send_directories': True, | 'max_content_size': 100 * 1024 * 1024, | ||||
'send_occurrences': True, | 'storage': { | ||||
'send_releases': True, | 'cls': 'pipeline', | ||||
'send_revisions': True, | 'steps': [ | ||||
'send_snapshot': True, | { | ||||
'storage': {'args': {}, 'cls': 'memory'}, | 'cls': 'filter' | ||||
'temp_directory': '/tmp' | }, | ||||
{ | |||||
'cls': 'buffer', | |||||
'min_batch_size': { | |||||
'content': 10000, | |||||
'content_bytes': 1073741824, | |||||
'directory': 2500, | |||||
'revision': 10, | |||||
'release': 100, | |||||
}, | |||||
}, | |||||
{ | |||||
'cls': 'memory' | |||||
}, | |||||
] | |||||
}, | |||||
} | } | ||||
class SvnLoaderTest(SvnLoader): | class SvnLoaderTest(SvnLoader): | ||||
"""An SVNLoader with no persistence. | """An SVNLoader with no persistence. | ||||
Context: | Context: | ||||
Load a new svn repository using the swh policy (so no update). | Load a new svn repository using the swh policy (so no update). | ||||
▲ Show 20 Lines • Show All 803 Lines • Show Last 20 Lines |
You can safely remove that entry too as its use is dropped in D2403