libeufin

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

commit d6198e9dbe7dd8a58e534ccc85df65d03c5a8814
parent 94215e32b2333d507ebbb61a8bfc7f498fd3d187
Author: MS <ms@taler.net>
Date:   Mon,  6 Jul 2020 16:40:26 +0200

Env test.

Starting the testing environment by giving one
subscriber TWO bank accounts, as the sandbox.

Diffstat:
Mintegration-tests/start-testenv.py | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/integration-tests/start-testenv.py b/integration-tests/start-testenv.py @@ -35,6 +35,7 @@ BC1_SUBSCRIBER1_IBAN = "GB33BUKB20201222222222" BC1_SUBSCRIBER1_BIC = "BUKBGB11" BC1_SUBSCRIBER1_NAME = "Oliver Smith" BC1_SUBSCRIBER1_BANK_ACCOUNT_LABEL = "bc1sub1savings" +BC1_SUBSCRIBER1_BANK_ACCOUNT_LABEL_KONTO = "bc1sub1konto" BC1_SUBSCRIBER2_IBAN = "GB33BUKB20201333333333" BC1_SUBSCRIBER2_BIC = "BUKBGB22" @@ -173,6 +174,20 @@ assertResponse( ), ) ) + +assertResponse( + post( + "http://localhost:5000/admin/ebics/bank-accounts", + json=dict( + subscriber=dict(hostID=BC1_HOST_ID, partnerID=BC1_PARTNER_ID, userID=BC1_USER_ID), + iban=BC1_SUBSCRIBER1_IBAN, + bic=BC1_SUBSCRIBER1_BIC, + name=BC1_SUBSCRIBER1_NAME, + label=BC1_SUBSCRIBER1_BANK_ACCOUNT_LABEL_KONTO + ), + ) +) + assertResponse( post( "http://localhost:5000/admin/ebics/bank-accounts",