-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new test newmod3 test d'idempotenza activate
- Loading branch information
Showing
8 changed files
with
350 additions
and
121 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
...t/features/NewMod3/flows/activatePaymentNotice/activatePaymentNotice_IDMP_ACT_6_3.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
Feature: semantic check for activatePaymentNotice regarding idempotency | ||
|
||
Background: | ||
Given systems up | ||
And nodo-dei-pagamenti has config parameter useIdempotency set to true | ||
|
||
Scenario: Execute activatePaymentNotice request | ||
Given initial XML activatePaymentNotice | ||
""" | ||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nod="http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd"> | ||
<soapenv:Header/> | ||
<soapenv:Body> | ||
<nod:activatePaymentNoticeReq> | ||
<idPSP>70000000001</idPSP> | ||
<idBrokerPSP>70000000001</idBrokerPSP> | ||
<idChannel>70000000001_01</idChannel> | ||
<password>pwdpwdpwd</password> | ||
<idempotencyKey>#idempotency_key#</idempotencyKey> | ||
<qrCode> | ||
<fiscalCode>#creditor_institution_code_old#</fiscalCode> | ||
<noticeNumber>#notice_number_old#</noticeNumber> | ||
</qrCode> | ||
<amount>10.00</amount> | ||
<dueDate>2021-12-31</dueDate> | ||
<paymentNote>causale</paymentNote> | ||
</nod:activatePaymentNoticeReq> | ||
</soapenv:Body> | ||
</soapenv:Envelope> | ||
""" | ||
When PSP sends SOAP activatePaymentNotice to nodo-dei-pagamenti | ||
Then check outcome is OK of activatePaymentNotice response | ||
And save activatePaymentNotice response in activatePaymentNotice1 | ||
And saving activatePaymentNotice request in activatePaymentNotice1 | ||
|
||
Scenario: Execute activatePaymentNotice1 request | ||
Given the Execute activatePaymentNotice request scenario executed successfully | ||
And initial XML activatePaymentNotice | ||
""" | ||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nod="http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd"> | ||
<soapenv:Header/> | ||
<soapenv:Body> | ||
<nod:activatePaymentNoticeReq> | ||
<idPSP>70000000001</idPSP> | ||
<idBrokerPSP>70000000001</idBrokerPSP> | ||
<idChannel>70000000001_01</idChannel> | ||
<password>pwdpwdpwd</password> | ||
<idempotencyKey>$activatePaymentNotice.idempotencyKey</idempotencyKey> | ||
<qrCode> | ||
<fiscalCode>$activatePaymentNotice1.fiscalCode</fiscalCode> | ||
<noticeNumber>#notice_number_old#</noticeNumber> | ||
</qrCode> | ||
<amount>10.00</amount> | ||
<dueDate>2021-12-31</dueDate> | ||
<paymentNote>causale</paymentNote> | ||
</nod:activatePaymentNoticeReq> | ||
</soapenv:Body> | ||
</soapenv:Envelope> | ||
""" | ||
When PSP sends SOAP activatePaymentNotice to nodo-dei-pagamenti | ||
Then check outcome is KO of activatePaymentNotice response | ||
And check faultCode is PPT_ERRORE_IDEMPOTENZA of activatePaymentNotice response | ||
|
||
#DB check | ||
Scenario: Execute activatePaymentNotice request | ||
Given the Execute activatePaymentNotice1 request scenario executed successfully | ||
And checks the value PAYING of the record at column STATUS of the table POSITION_PAYMENT_STATUS retrived by the query payment_status_pay_only_act1 on db nodo_online under macro NewMod3 | ||
And checks the value PAYING of the record at column STATUS of the table POSITION_PAYMENT_STATUS_SNAPSHOT retrived by the query payment_status_pay_only_act1 on db nodo_online under macro NewMod3 | ||
And checks the value PAYING of the record at column STATUS of the table POSITION_STATUS retrived by the query payment_status_1 on db nodo_online under macro NewMod3 | ||
And checks the value PAYING of the record at column STATUS of the table POSITION_STATUS_SNAPSHOT retrived by the query payment_status_1 on db nodo_online under macro NewMod3 | ||
And checks the value NotNone of the record at column ID of the table POSITION_ACTIVATE retrived by the query payment_status_pay_only_act1 on db nodo_online under macro NewMod3 | ||
And checks the value NotNone of the record at column ID of the table POSITION_PAYMENT retrived by the query payment_status_pay_only_act1 on db nodo_online under macro NewMod3 | ||
And checks the value NotNone of the record at column ID of the table IDEMPOTENCY_CACHE retrived by the query idempotency_act on db nodo_online under macro NewMod3 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
80 changes: 80 additions & 0 deletions
80
...t/features/NewMod3/flows/activatePaymentNotice/activatePaymentNotice_IDMP_ACT_6_4.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
Feature: semantic check for activatePaymentNotice regarding idempotency | ||
|
||
Background: | ||
Given systems up | ||
And nodo-dei-pagamenti has config parameter useIdempotency set to true | ||
|
||
Scenario: Execute activatePaymentNotice request | ||
Given initial XML activatePaymentNotice | ||
""" | ||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nod="http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd"> | ||
<soapenv:Header/> | ||
<soapenv:Body> | ||
<nod:activatePaymentNoticeReq> | ||
<idPSP>70000000001</idPSP> | ||
<idBrokerPSP>70000000001</idBrokerPSP> | ||
<idChannel>70000000001_01</idChannel> | ||
<password>pwdpwdpwd</password> | ||
<idempotencyKey>#idempotency_key#</idempotencyKey> | ||
<qrCode> | ||
<fiscalCode>#creditor_institution_code_old#</fiscalCode> | ||
<noticeNumber>#notice_number_old#</noticeNumber> | ||
</qrCode> | ||
<expirationTime>150000</expirationTime> | ||
<amount>10.00</amount> | ||
<dueDate>2021-12-31</dueDate> | ||
<paymentNote>causale</paymentNote> | ||
</nod:activatePaymentNoticeReq> | ||
</soapenv:Body> | ||
</soapenv:Envelope> | ||
""" | ||
When PSP sends SOAP activatePaymentNotice to nodo-dei-pagamenti | ||
Then check outcome is OK of activatePaymentNotice response | ||
And save activatePaymentNotice response in activatePaymentNotice1 | ||
And saving activatePaymentNotice request in activatePaymentNotice1 | ||
|
||
Scenario: Execute activatePaymentNotice1 request | ||
Given the Execute activatePaymentNotice request scenario executed successfully | ||
And initial XML activatePaymentNotice | ||
""" | ||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nod="http://pagopa-api.pagopa.gov.it/node/nodeForPsp.xsd"> | ||
<soapenv:Header/> | ||
<soapenv:Body> | ||
<nod:activatePaymentNoticeReq> | ||
<idPSP>70000000001</idPSP> | ||
<idBrokerPSP>70000000001</idBrokerPSP> | ||
<idChannel>70000000001_01</idChannel> | ||
<password>pwdpwdpwd</password> | ||
<idempotencyKey>$activatePaymentNotice.idempotencyKey</idempotencyKey> | ||
<qrCode> | ||
<fiscalCode>$activatePaymentNotice.fiscalCode</fiscalCode> | ||
<noticeNumber>$activatePaymentNotice.noticeNumber</noticeNumber> | ||
</qrCode> | ||
<amount>10.00</amount> | ||
<dueDate>2021-12-31</dueDate> | ||
<paymentNote>causale</paymentNote> | ||
</nod:activatePaymentNoticeReq> | ||
</soapenv:Body> | ||
</soapenv:Envelope> | ||
""" | ||
When PSP sends SOAP activatePaymentNotice to nodo-dei-pagamenti | ||
Then check outcome is OK of activatePaymentNotice response | ||
|
||
#DB check | ||
Scenario: Execute activatePaymentNotice request | ||
Given the Execute activatePaymentNotice1 request scenario executed successfully | ||
And checks the value PAYING of the record at column STATUS of the table POSITION_PAYMENT_STATUS retrived by the query payment_status_pay_only_act1 on db nodo_online under macro NewMod3 | ||
And checks the value PAYING of the record at column STATUS of the table POSITION_PAYMENT_STATUS_SNAPSHOT retrived by the query payment_status_pay_only_act1 on db nodo_online under macro NewMod3 | ||
And checks the value PAYING of the record at column STATUS of the table POSITION_STATUS retrived by the query payment_status_1 on db nodo_online under macro NewMod3 | ||
And checks the value PAYING of the record at column STATUS of the table POSITION_STATUS_SNAPSHOT retrived by the query payment_status_1 on db nodo_online under macro NewMod3 | ||
And checks the value NotNone of the record at column ID of the table POSITION_ACTIVATE retrived by the query payment_status_pay_only_act1 on db nodo_online under macro NewMod3 | ||
And checks the value NotNone of the record at column ID of the table POSITION_PAYMENT retrived by the query payment_status_pay_only_act1 on db nodo_online under macro NewMod3 | ||
And checks the value NotNone of the record at column ID of the table IDEMPOTENCY_CACHE retrived by the query idempotency_act on db nodo_online under macro NewMod3 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters