@davoodmehraban89 / Factor-easy / commits / 7e1679d
Fork 0

سامانه صدور فاکتور و حسابداری

test: correct C8 request-key mismatch case

davoodmehraban89 committed Oct 1, 2026 at 21:27 UTC 7e1679d12e321d80eb68a0f69cd56ebab2b28036
1 file changed +1 -1
supabase/tests/office_c8_runtime.sql
+1 -1
@@ -115,7 +115,7 @@ do $$ begin
115 begin perform public.office_workflow_read('aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa','LETTER_OK',-2,10); raise exception 'invalid cursor accepted'; exception when invalid_parameter_value then null; end;
116 begin perform public.office_workflow_read('aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa','LETTER_OK',-1,0); raise exception 'invalid limit accepted'; exception when invalid_parameter_value then null; end;
117 begin perform public.office_workflow_attach('aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa','LETTER_DRAFT','basic',1,null); raise exception 'null request id accepted'; exception when invalid_parameter_value then null; end;
118 - begin perform public.office_workflow_attach('aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa','LETTER_REPLAY','basic',1,'00000000-0000-4000-8000-000000000020'); raise exception 'reused request key with different payload accepted'; exception when unique_violation then null; end;
118 + begin perform public.office_workflow_attach('aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa','LETTER_OK','basic',1,'00000000-0000-4000-8000-000000000020'); raise exception 'reused request key with different payload accepted'; exception when unique_violation then null; end;
119 end $$;
120
121 rollback;