taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 6a358f5b9238fe1cf7ef513922a6b81b2db26901
parent 8c5a66a590db8d11daf69c60d22acd816c0d2b05
Author: Florian Dold <dold@taler.net>
Date:   Mon,  7 Sep 2026 12:36:52 +0200

taler-harness: allow exchange database customizations in dbinit

Accept an optional customization name and pass it to
taler-exchange-dbinit with separate command arguments.

Issue: https://bugs.taler.net/n/9639

Diffstat:
Mpackages/taler-harness/src/harness/harness.ts | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/packages/taler-harness/src/harness/harness.ts b/packages/taler-harness/src/harness/harness.ts @@ -2430,11 +2430,16 @@ export class ExchangeService implements ExchangeServiceInterface { .map(({ name, section }) => ({ name, section })); } - async dbinit() { - await sh( + async dbinit(opts: { customization?: string } = {}) { + await runCommand( this.globalState, "exchange-dbinit", - `taler-exchange-dbinit -c "${this.configFilename}"`, + "taler-exchange-dbinit", + [ + "-c", + this.configFilename, + ...(opts.customization ? ["-e", opts.customization] : []), + ], ); }