libeufin

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

commit 00b2a27a58719ac7e02ce3d3019f866bb9195a48
parent 073bf67f543be80bf81807d73ea388659ba420fd
Author: tanhengyeow <E0032242@u.nus.edu>
Date:   Thu, 25 Jun 2020 13:06:01 +0800

Update configs and test script

Diffstat:
M.gitignore | 1+
Mfrontend/craco.config.js | 1+
Mfrontend/src/actions/auth.tsx | 6+++---
Mintegration-tests/start-testenv.py | 7++++---
4 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -12,3 +12,4 @@ presentation/*.toc .idea/misc.xml __pycache__ *.log +.DS_Store diff --git a/frontend/craco.config.js b/frontend/craco.config.js @@ -13,6 +13,7 @@ module.exports = { '@menu-item-padding': '0 120px', '@menu-bg': 'none', '@menu-item-font-size': '16px', + '@collapse-content-bg': '#f0f2f5', }, javascriptEnabled: true, }, diff --git a/frontend/src/actions/auth.tsx b/frontend/src/actions/auth.tsx @@ -35,7 +35,7 @@ export const login = (nexusURL: string, username: string, password: string) => { if (response.ok) { return response.json(); } - throw 'Cannot connect to server'; + throw new Error('Cannot connect to server'); }) .then(async () => { await window.localStorage.setItem('authenticated', 'true'); @@ -45,8 +45,8 @@ export const login = (nexusURL: string, username: string, password: string) => { ); dispatch(authenticate()); }) - .catch((err) => { - throw new Error(err); + .catch((err: Error) => { + throw err; }); } }; diff --git a/integration-tests/start-testenv.py b/integration-tests/start-testenv.py @@ -350,18 +350,19 @@ assertResponse( # ) # ) +print("fetching") -# # 2.c, fetch bank account information +# 2.c, fetch bank account information assertResponse( post( - "http://localhost:5001/bank-connections/my-ebics-1/accounts/fetch", + "http://localhost:5001/bank-connections/my-ebics-1/fetch-accounts", json=dict(), headers=dict(Authorization=USER_AUTHORIZATION_HEADER), ) ) assertResponse( post( - "http://localhost:5001/bank-connections/my-ebics-2/accounts/fetch", + "http://localhost:5001/bank-connections/my-ebics-2/fetch-accounts", json=dict(), headers=dict(Authorization=USER_AUTHORIZATION_HEADER), )