From ff301b9ba07375920e6c17ad9372bb61fe943075 Mon Sep 17 00:00:00 2001 From: tanhengyeow Date: Mon, 15 Jun 2020 01:11:21 +0800 Subject: Add more bank connections in script --- integration-tests/start-testenv.py | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/integration-tests/start-testenv.py b/integration-tests/start-testenv.py index 78a0555b..1fb12786 100755 --- 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 -- cgit v1.2.3