diff options
author | Florian Dold <florian@dold.me> | 2021-08-23 22:28:36 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-23 22:28:46 +0200 |
commit | 828e65b0eba66b7c999d9867396797a239449a6d (patch) | |
tree | 2dcb55dfb5c9854c196fc21d0d5282928de12ff6 /packages/taler-wallet-cli/src/integrationtests/harness.ts | |
parent | 67e511d719cbc3e7f2b391a8d6914406caa2fb24 (diff) | |
download | wallet-core-828e65b0eba66b7c999d9867396797a239449a6d.tar.xz |
fix un-offered denom situation, test case almost works
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/harness.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/harness.ts | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/harness.ts b/packages/taler-wallet-cli/src/integrationtests/harness.ts index 10b93b330..d47dfe098 100644 --- a/packages/taler-wallet-cli/src/integrationtests/harness.ts +++ b/packages/taler-wallet-cli/src/integrationtests/harness.ts @@ -838,12 +838,6 @@ export class ExchangeService implements ExchangeServiceInterface { e.roundUnit ?? `${e.currency}:0.01`, ); setTalerPaths(config, gc.testDir + "/talerhome"); - - config.setString( - "exchange", - "keydir", - "${TALER_DATA_HOME}/exchange/live-keys/", - ); config.setString( "exchange", "revocation_dir", @@ -1078,6 +1072,23 @@ export class ExchangeService implements ExchangeServiceInterface { ); } + async purgeSecmodKeys(): Promise<void> { + const cfg = Configuration.load(this.configFilename); + const rsaKeydir = cfg.getPath("taler-exchange-secmod-rsa", "KEY_DIR").required(); + const eddsaKeydir = cfg.getPath("taler-exchange-secmod-eddsa", "KEY_DIR").required(); + // Be *VERY* careful when changing this, or you will accidentally delete user data. + await sh(this.globalState, "rm-secmod-keys", `rm -rf ${rsaKeydir}/COIN_*`); + await sh(this.globalState, "rm-secmod-keys", `rm ${eddsaKeydir}/*`); + } + + async purgeDatabase(): Promise<void> { + await sh( + this.globalState, + "exchange-dbinit", + `taler-exchange-dbinit -r -c "${this.configFilename}"`, + ); + } + async start(): Promise<void> { if (this.isRunning()) { throw Error("exchange is already running"); @@ -1111,8 +1122,6 @@ export class ExchangeService implements ExchangeServiceInterface { [ "-c", this.configFilename, - "--num-threads", - "1", ...this.timetravelArgArr, ], `exchange-httpd-${this.name}`, |