libeufin

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

commit ff301b9ba07375920e6c17ad9372bb61fe943075
parent 307db11a19cd3e8e6319f6570f001cc84303e715
Author: tanhengyeow <E0032242@u.nus.edu>
Date:   Mon, 15 Jun 2020 01:11:21 +0800

Add more bank connections in script

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

diff --git a/integration-tests/start-testenv.py b/integration-tests/start-testenv.py @@ -113,6 +113,48 @@ assertResponse( headers=dict(Authorization=USER_AUTHORIZATION_HEADER), ) ) +assertResponse( + post( + "http://localhost:5001/bank-connections", + json=dict( + name="my-ebics-2", + source="new", + type="ebics", + data=dict( + ebicsURL=EBICS_URL, hostID=HOST_ID, partnerID=PARTNER_ID, userID=USER_ID + ), + ), + headers=dict(Authorization=USER_AUTHORIZATION_HEADER), + ) +) +assertResponse( + post( + "http://localhost:5001/bank-connections", + json=dict( + name="my-ebics-3", + source="new", + type="ebics", + data=dict( + ebicsURL=EBICS_URL, hostID=HOST_ID, partnerID=PARTNER_ID, userID=USER_ID + ), + ), + headers=dict(Authorization=USER_AUTHORIZATION_HEADER), + ) +) +assertResponse( + post( + "http://localhost:5001/bank-connections", + json=dict( + name="my-ebics-4", + source="new", + type="ebics", + data=dict( + ebicsURL=EBICS_URL, hostID=HOST_ID, partnerID=PARTNER_ID, userID=USER_ID + ), + ), + headers=dict(Authorization=USER_AUTHORIZATION_HEADER), + ) +) print("connecting") @@ -123,6 +165,27 @@ assertResponse( headers=dict(Authorization=USER_AUTHORIZATION_HEADER), ) ) +assertResponse( + post( + "http://localhost:5001/bank-connections/my-ebics-2/connect", + json=dict(), + headers=dict(Authorization=USER_AUTHORIZATION_HEADER), + ) +) +assertResponse( + post( + "http://localhost:5001/bank-connections/my-ebics-3/connect", + json=dict(), + headers=dict(Authorization=USER_AUTHORIZATION_HEADER), + ) +) +assertResponse( + post( + "http://localhost:5001/bank-connections/my-ebics-4/connect", + json=dict(), + headers=dict(Authorization=USER_AUTHORIZATION_HEADER), + ) +) # 2.c, fetch bank account information