diff options
author | MS <ms@taler.net> | 2020-10-29 22:27:55 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2020-10-29 22:27:55 +0100 |
commit | 2c20308c86309fccb3843d095c89320a6995e49e (patch) | |
tree | 66732591dbc32682088b57ff3b7ed29ada1af659 /integration-tests/test-ebics.py | |
parent | d7878cb5d05c76959ca97f8fca79ea93afe0d02b (diff) | |
download | libeufin-2c20308c86309fccb3843d095c89320a6995e49e.tar.gz libeufin-2c20308c86309fccb3843d095c89320a6995e49e.tar.bz2 libeufin-2c20308c86309fccb3843d095c89320a6995e49e.zip |
checks (work in progress)
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), ) ) |