diff options
Diffstat (limited to 'integration-tests/test-ebics.py')
-rwxr-xr-x | integration-tests/test-ebics.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/integration-tests/test-ebics.py b/integration-tests/test-ebics.py index aac20d7c..c725715e 100755 --- a/integration-tests/test-ebics.py +++ b/integration-tests/test-ebics.py @@ -3,13 +3,13 @@ from requests import post, get from subprocess import call, Popen, PIPE from time import sleep +from util import startNexus, startSandbox, assertResponse +from json_checks import checkFetchTransactions, checkPreparedPaymentElement import os import socket import hashlib import base64 -from util import startNexus, startSandbox, assertResponse - # Steps implemented in this test. # # 0 Prepare sandbox. @@ -212,6 +212,13 @@ PREPARED_PAYMENT_UUID = resp.json().get("uuid") if PREPARED_PAYMENT_UUID == None: fail("Payment UUID not received") +resp = assertResponse( + get(f"http://localhost:5001/bank-accounts/{BANK_ACCOUNT_LABEL}/payment-initiations/{PREPARED_PAYMENT_UUID}", + headers=dict(Authorization=USER_AUTHORIZATION_HEADER) + ) +) +checkPreparedPaymentElement(resp.json()) + # 5.b, submit prepared statement assertResponse( post( @@ -225,7 +232,7 @@ assertResponse( assertResponse( post( f"http://localhost:5001/bank-accounts/{BANK_ACCOUNT_LABEL}/fetch-transactions", - json=dict(level="all", rangeType="all"), + json=checkFetchTransactions(dict(level="all", rangeType="all")), headers=dict(Authorization=USER_AUTHORIZATION_HEADER), ) ) |