libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit d9547e525b226c9fa51c4ff9c8ca331077f36bbb
parent 9eb0e75ab5d57b61e0dd268b7f1e171134f770d5
Author: Marcello Stanisci <ms@taler.net>
Date:   Thu, 30 Apr 2020 17:00:01 +0200

Integration test.

Bring up to payment preparation step to pass.

Diffstat:
Mintegration-tests/test-ebics.py | 28++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/integration-tests/test-ebics.py b/integration-tests/test-ebics.py @@ -132,39 +132,35 @@ resp = post( json=dict() ) assert(resp.status_code == 200) -exit(77) -#3 Request history via EBICS +#3 resp = post( "http://localhost:5001/ebics/subscribers/{}/collect-transactions-c53".format(USERNAME), json=dict() ) - assert(resp.status_code == 200) +#4 resp = get( "http://localhost:5001/users/{}/history".format(USERNAME) ) - -#4 -assert( - resp.status_code == 200 and \ - len(resp.json().get("payments")) == 0 -) +assert(resp.status_code == 200) +assert(len(resp.json().get("payments")) == 0) #5.a resp = post( "http://localhost:5001/users/{}/prepare-payment".format(USERNAME), json=dict( - creditorIban="GB33BUKB20201555555555", - creditorBic="BUKBGB22", - creditorName="Oliver Smith", - debitorIban="FR7630006000011234567890189", - debitorBic="AGRIFRPP", - debitorName="Jacques LaFayette" + creditorIban="FR7630006000011234567890189", + creditorBic="AGRIFRPP", + creditorName="Jacques La Fayette", + debitorIban=SUBSCRIBER_IBAN, + debitorBic=SUBSCRIBER_BIC, + debitorName=SUBSCRIBER_NAME, + subject="integration test", + sum=1 ) ) - assert(resp.status_code == 200) #7 Execute such payment via EBICS