Betrieb: Verbindungsdatei, Summen mit Abgleich vor dem Schreiben, Laufhistorie

This commit is contained in:
wkh
2026-10-09 21:46:50 +02:00
parent fffb2e4961
commit baf09d3947
7 changed files with 390 additions and 11 deletions
+15
View File
@@ -112,4 +112,19 @@ class EtlCliTest < PipelineTest
assert_equal 0, status.exitstatus, err
end
end
def test_history_with_script_name
with_tmpdir do |dir|
path = script(dir, 'export_kunden.rb', <<~RUBY)
DataPipeline.new do
read container(:csv, file: 'in.csv')
write container(:csv, file: 'out.csv')
end.run
RUBY
_out, err, status = etl(dir, 'run', path, '--history', 'runs.ndjson')
assert_equal 0, status.exitstatus, err
entry = JSON.parse(File.read("#{dir}/runs.ndjson"))
assert_equal ['export_kunden', 3, true], entry.values_at('name', 'read', 'ok')
end
end
end