diff options
Diffstat (limited to 'packages/taler-harness/src/harness/harness.ts')
-rw-r--r-- | packages/taler-harness/src/harness/harness.ts | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/packages/taler-harness/src/harness/harness.ts b/packages/taler-harness/src/harness/harness.ts index 27c54b8b4..ea2406f52 100644 --- a/packages/taler-harness/src/harness/harness.ts +++ b/packages/taler-harness/src/harness/harness.ts @@ -729,7 +729,7 @@ export class FakebankService } /** - * Implementation of the bank service using the "taler-fakebank-run" tool. + * Implementation of the bank service using the libeufin-bank implementation. */ export class LibeufinBankService extends BankServiceBase @@ -766,21 +766,14 @@ export class LibeufinBankService config.setString("libeufin-bank", "serve", "tcp"); config.setString( "libeufin-bank", - "DEFAULT_CUSTOMER_DEBT_LIMIT", - `${bc.currency}:500`, - ); - config.setString( - "libeufin-bank", - "DEFAULT_ADMIN_DEBT_LIMIT", - `${bc.currency}:999999`, + "DEFAULT_DEBT_LIMIT", + `${bc.currency}:100`, ); config.setString( "libeufin-bank", "registration_bonus", `${bc.currency}:100`, ); - config.setString("libeufin-bank", "registration_bonus_enabled", `yes`); - config.setString("libeufin-bank", "max_auth_token_duration", "1h"); const cfgFilename = testDir + "/bank.conf"; config.write(cfgFilename, { excludeDefaults: true }); @@ -804,7 +797,7 @@ export class LibeufinBankService .required(), httpPort: config.getNumber("libeufin-bank", "port").required(), maxDebt: config - .getString("libeufin-bank", "DEFAULT_CUSTOMER_DEBT_LIMIT") + .getString("libeufin-bank", "DEFAULT_DEBT_LIMIT") .required(), }; return new FakebankService(gc, bc, cfgFilename); @@ -850,10 +843,16 @@ export class LibeufinBankService await sh( this.globalTestState, - "libeufin-bank-dbinit", + "libeufin-bank-passwd", `libeufin-bank passwd -c "${this.configFile}" admin adminpw`, ); + await sh( + this.globalTestState, + "libeufin-bank-edit-account", + `libeufin-bank edit-account -c "${this.configFile}" admin --debit_threshold=${this.bankConfig.currency}:1000`, + ); + this.proc = this.globalTestState.spawnService( "libeufin-bank", ["serve", "-c", this.configFile], |