From fcbfe671220ff4e3b53f9151f870ccfe87a93d11 Mon Sep 17 00:00:00 2001 From: MS Date: Wed, 3 Feb 2021 14:54:56 +0100 Subject: [PATCH] libeufin tutorial test: create ebics host --- .../taler-wallet-cli/src/integrationtests/libeufin.ts | 9 +++++++++ .../src/integrationtests/test-libeufin-tutorial.ts | 1 + 2 files changed, 10 insertions(+) diff --git a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts index 486837e9b..8b2ed8992 100644 --- a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts +++ b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts @@ -196,6 +196,15 @@ export class LibeufinCli { extendEnv({ LIBEUFIN_SANDBOX_URL: this.cliDetails.sandboxUrl }), ); } + + async createEbicsHost(hostId: string): Promise { + await sh( + this.globalTestState, + "libeufin-cli-createebicshost", + `libeufin-cli sandbox ebicshost create --host-id=${hostId}`, + extendEnv({ LIBEUFIN_SANDBOX_URL: this.cliDetails.sandboxUrl }), + ); + } } export namespace LibeufinSandboxApi { diff --git a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-tutorial.ts b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-tutorial.ts index dce5e8869..58cee512a 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-tutorial.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-tutorial.ts @@ -58,4 +58,5 @@ export async function runLibeufinTutorialTest(t: GlobalTestState) { }); await libeufinCli.checkSandbox(); + await libeufinCli.createEbicsHost("testhost"); }