Log tests durchgeführt und korrekturen in net storage package diesbezüglich

This commit is contained in:
2026-04-09 13:10:47 +02:00
parent 877ea380e4
commit 6c8b5053e2
4 changed files with 187 additions and 65 deletions

View File

@@ -0,0 +1,61 @@
select *
from lg_app_log
;
--truncate table lg_app_log;
/*
Test Calls für logs
*/
begin
-- Neuen Batch-Ordner für heutigen Import anlegen
pck_net_storage.p_create_folder(
i_prefix => 'testmandant-42/Eingang/Verarbeitet 2026/'
,i_folder_name => 'Batch-2026-04-09'
);
-- Drei PDFs kommen im Import an
pck_net_storage.p_upload_object(
i_object_key => 'testmandant-42/Eingang/Import/scan_001.pdf'
,i_content => empty_blob()
,i_content_type => 'application/pdf'
);
pck_net_storage.p_upload_object(
i_object_key => 'testmandant-42/Eingang/Import/scan_002.pdf'
,i_content => empty_blob()
,i_content_type => 'application/pdf'
);
pck_net_storage.p_upload_object(
i_object_key => 'testmandant-42/Eingang/Import/scan_003.pdf'
,i_content => empty_blob()
,i_content_type => 'application/pdf'
);
-- Scans werden nach Sichtung benannt
pck_net_storage.p_rename_object(
i_object_key => 'testmandant-42/Eingang/Import/scan_001.pdf'
,i_new_name => 'rechnung_mueller_2026-04.pdf'
);
pck_net_storage.p_rename_object(
i_object_key => 'testmandant-42/Eingang/Import/scan_002.pdf'
,i_new_name => 'angebot_huber_2026-04.pdf'
);
-- scan_003 ist ein Duplikat, wird gelöscht
pck_net_storage.p_delete_object(
i_object_key => 'testmandant-42/Eingang/Import/scan_003.pdf'
);
-- Verarbeitete Dateien in den Batch-Ordner verschieben
pck_net_storage.p_move_object(
i_object_key => 'testmandant-42/Eingang/Import/rechnung_mueller_2026-04.pdf'
,i_target_prefix => 'testmandant-42/Eingang/Verarbeitet 2026/Batch-2026-04-09/'
);
pck_net_storage.p_move_object(
i_object_key => 'testmandant-42/Eingang/Import/angebot_huber_2026-04.pdf'
,i_target_prefix => 'testmandant-42/Eingang/Verarbeitet 2026/Batch-2026-04-09/'
);
commit;
end;
/