Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REFAPP-1101] test case for content mismatch #198

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions manifests/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,29 @@
"Risk": {}
}
},
"minimalDomesticPaymentMismatchPost": {
"body": {
"Data": {
"ConsentId": "$consentId",
"Initiation": {
"InstructionIdentification": "$instructionIdentification",
"EndToEndIdentification": "$endToEndIdentification",
"InstructedAmount": {
"Amount": "$instructedAmountValue",
"Currency": "$instructedAmountCurrency"
},
"CreditorAccount": {
"SchemeName": "$creditorScheme",
"Identification": "$creditorIdentification",
"Name": "$creditorName"
}
}
},
"Risk": {
"PaymentContextCode": "BillPayment"
}
}
},
"minimalDomesticScheduledPaymentPost": {
"body": {
"Data": {
Expand Down
30 changes: 30 additions & 0 deletions manifests/ob_3.1_payment_fca.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,36 @@
"schemaCheck": true,
"validateSignature": true
},
{
"description": "Domestic Payment for processing fails due to content mismatch.",
"id": "OB-301-DOP-100550",
"refURI": "https://openbanking.atlassian.net/wiki/spaces/DZ/pages/999623013/Domestic+Payments+v3.1.1#DomesticPaymentsv3.1.1-POST/domestic-payments",
"detail": "Check that once the domestic-payment-consent has been authorised by the PSU, the PISP can proceed to submitting the domestic-payment for processing.",
"parameters": {
"tokenRequestScope": "payments",
"consentId": "$OB-301-DOP-100300-ConsentId",
"thisSchemeName": "$creditorScheme",
"thisIdentification": "$creditorIdentification",
"instructionIdentification": "$OB-301-DOP-100300-instructionIdentification",
"endToEndIdentification": "e2e-domestic-pay",
"instructedAmountCurrency": "$instructedAmountCurrency",
"instructedAmountValue": "$instructedAmountValue",
"postData": "$minimalDomesticPaymentMismatchPost"
},
"headers": {
"Content-Type": "application/json"
},
"body": "$postData",
"uri": "/domestic-payments",
"uriImplementation": "mandatory",
"resource": "DomesticPayment",
"asserts": [
"OB3GLOAssertOn400"
],
"method": "post",
"schemaCheck": true,
"validateSignature": true
},
{
"description": "Domestic Payment for processing succeeds with minimal data.",
"id": "OB-301-DOP-100600",
Expand Down
30 changes: 30 additions & 0 deletions manifests/ob_4.0_payment_fca.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,36 @@
"schemaCheck": true,
"validateSignature": true
},
{
"description": "Domestic Payment for processing fails due to content mismatch.",
"id": "OB-400-DOP-100550",
"refURI": "https://openbankinguk.github.io/read-write-api-site3/v4.0/profiles/payment-initiation-api-profile.html",
"detail": "Check that once the domestic-payment-consent has been authorised by the PSU, the PISP can proceed to submitting the domestic-payment for processing.",
"parameters": {
"tokenRequestScope": "payments",
"consentId": "$OB-400-DOP-100300-ConsentId",
"thisSchemeName": "$creditorScheme",
"thisIdentification": "$creditorIdentification",
"instructionIdentification": "$OB-400-DOP-100300-instructionIdentification",
"endToEndIdentification": "e2e-domestic-pay",
"instructedAmountCurrency": "$instructedAmountCurrency",
"instructedAmountValue": "$instructedAmountValue",
"postData": "$minimalDomesticPaymentMismatchPost"
},
"headers": {
"Content-Type": "application/json"
},
"body": "$postData",
"uri": "/domestic-payments",
"uriImplementation": "mandatory",
"resource": "DomesticPayment",
"asserts": [
"OB3GLOAssertOn400"
],
"method": "post",
"schemaCheck": true,
"validateSignature": true
},
{
"description": "Domestic Payment for processing succeeds with minimal data.",
"id": "OB-400-DOP-100600",
Expand Down
Loading