diff options
author | MS <ms@taler.net> | 2022-12-09 10:51:33 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2022-12-09 10:55:52 +0100 |
commit | d4710ba700b37948f61b1b841962b73379423c04 (patch) | |
tree | 5bcd64b5125045417314a2af0a5c498a9a52e5a7 /packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts | |
parent | 68811cc5f59e9f7f3e46e5a35edc3e4470a295db (diff) | |
download | wallet-core-d4710ba700b37948f61b1b841962b73379423c04.tar.xz |
Adapt libeufin test suite to recent API.
The new libeufin-sandbox API enforces every bank account
to be owned by one bank customer; this change therefore
provides every test user a customer profile before trying
the banking operations.
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts index 26fecd77e..c3cbc0608 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-bankaccount.ts @@ -49,22 +49,21 @@ export async function runLibeufinApiBankaccountTest(t: GlobalTestState) { await sandbox.start(); await sandbox.pingUntilAvailable(); await LibeufinSandboxApi.createEbicsHost(sandbox, "mock"); - await LibeufinSandboxApi.createEbicsSubscriber(sandbox, { - hostID: "mock", - userID: "mock", - partnerID: "mock", - }); - await LibeufinSandboxApi.createEbicsBankAccount(sandbox, { - subscriber: { + await LibeufinSandboxApi.createDemobankAccount( + "mock", + "password-unused", + { baseUrl: sandbox.baseUrl + "/demobanks/default/access-api/" }, + "DE71500105179674997361" + ); + await LibeufinSandboxApi.createDemobankEbicsSubscriber( + { hostID: "mock", partnerID: "mock", userID: "mock", }, - iban: "DE71500105179674997361", - bic: "BELADEBEXXX", - name: "mock", - label: "mock", - }); + "mock", + { baseUrl: sandbox.baseUrl + "/demobanks/default/" } + ); await LibeufinNexusApi.createEbicsBankConnection(nexus, { name: "bankaccount-api-test-connection", ebicsURL: "http://localhost:5012/ebicsweb", |