From ef8d064be0d1244d35e7742a43b58117ec28b5e3 Mon Sep 17 00:00:00 2001 From: Alessio Cialini Date: Mon, 15 Jan 2024 11:34:38 +0100 Subject: [PATCH] chore: update receipt_pdf_helpdesk.feature --- .../src/features/receipt_pdf_helpdesk.feature | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/integration-test/src/features/receipt_pdf_helpdesk.feature b/integration-test/src/features/receipt_pdf_helpdesk.feature index bb7854b..ca9c5ac 100644 --- a/integration-test/src/features/receipt_pdf_helpdesk.feature +++ b/integration-test/src/features/receipt_pdf_helpdesk.feature @@ -69,6 +69,15 @@ Feature: All about payment events to recover managed by Azure functions receipt- Then the api response has a 200 Http status And the list of receipt is recovered from datastore and no receipt in the list has status "IO_ERROR_TO_NOTIFY" + Scenario: regenerateReceiptPdf API retrieve the receipt with the given eventId and regenerate its pdf updating receipt's metadata + Given a receipt with eventId "receipt-helpdesk-int-test-id-10" and status "IO_NOTIFIED" stored into receipt datastore + And a biz event with id "receipt-helpdesk-int-test-id-10" and status "DONE" stored on biz-events datastore + When regenerateReceiptPdf API is called with bizEventId "receipt-helpdesk-int-test-id-10" as query param + Then the api response has a 200 Http status + And the receipt with eventId "receipt-helpdesk-int-test-id-10" is recovered from datastore + And the receipt has attachment metadata + And the PDF is present on blob storage + Scenario: recoverFailedCart API retrieve a cart in status FAILED and updates its status Given a biz event with transactionId "receipt-helpdesk-int-test-id-11" and status "DONE" stored on biz-events datastore And a biz event with transactionId "receipt-helpdesk-int-test-id-11" and status "DONE" stored on biz-events datastore