summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortanhengyeow <E0032242@u.nus.edu>2020-06-15 01:11:21 +0800
committertanhengyeow <E0032242@u.nus.edu>2020-06-15 01:11:21 +0800
commitff301b9ba07375920e6c17ad9372bb61fe943075 (patch)
tree3ffd414a75a921b38b0e2d660901455024e5b946
parent307db11a19cd3e8e6319f6570f001cc84303e715 (diff)
downloadlibeufin-ff301b9ba07375920e6c17ad9372bb61fe943075.tar.gz
libeufin-ff301b9ba07375920e6c17ad9372bb61fe943075.tar.bz2
libeufin-ff301b9ba07375920e6c17ad9372bb61fe943075.zip
Add more bank connections in script
-rwxr-xr-xintegration-tests/start-testenv.py63
1 files changed, 63 insertions, 0 deletions
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