1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
# Config file for unit testing ZipArchiveExpander.
[etl]
chains = input_zip_file|extract_zip_file|expand_zip_archive|output_std,
input_vsizip_file|extract_vsizip_file|expand_zip_archive|output_std
[input_zip_file]
class = stetl.inputs.fileinput.ZipFileInput
file_path = tests/data/ziparchiveinput.zip
name_filter = 9999LIG*.zip
[input_vsizip_file]
class = stetl.inputs.fileinput.VsiZipFileInput
file_path = tests/data/ziparchiveinput.zip
name_filter = 9999WPL*.zip
# Filter to extract a ZIP file one by one to a temporary location
[extract_zip_file]
class = stetl.filters.fileextractor.ZipFileExtractor
file_path = tests/data/temp/tempfile.zip
# Filter to extract a ZIP file one by one to a temporary location
[extract_vsizip_file]
class = stetl.filters.fileextractor.VsiFileExtractor
file_path = tests/data/temp/tempfile.zip
buffer_size = 1000
# Filter to expand a ZIP archive to a configured target dir
[expand_zip_archive]
class = stetl.filters.archiveexpander.ZipArchiveExpander
target_dir = tests/data/temp/temp_dir
remove_input_file = False
clear_target_dir = False
[output_std]
class = stetl.outputs.standardoutput.StandardOutput
|