taler-typescript-core

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

commit 0f1711bf58ee45d60e614b69b4aaa6b5e719c891
parent 0eb745768568c6340ba6e5d080b128052928c945
Author: Florian Dold <dold@taler.net>
Date:   Sun, 19 Jul 2026 18:22:15 +0200

harness: pass the merchant auth token in wallet-dbgen

Diffstat:
Mpackages/taler-harness/src/index.ts | 15+++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/packages/taler-harness/src/index.ts b/packages/taler-harness/src/index.ts @@ -504,12 +504,23 @@ advancedCli const t = new GlobalTestState({ testDir: testRootDir, }); - const { walletClient, walletService, bank, exchange, merchant } = - await createSimpleTestkudosEnvironmentV2(t); + const { + walletClient, + walletService, + bank, + exchange, + merchant, + merchantAdminAccessToken, + } = await createSimpleTestkudosEnvironmentV2(t); await walletClient.call(WalletApiOperation.RunIntegrationTestV2, { corebankApiBaseUrl: bank.corebankApiBaseUrl, exchangeBaseUrl: exchange.baseUrl, merchantBaseUrl: merchant.makeInstanceBaseUrl(), + // Without this the merchant answers 401 to the order the wallet + // creates. It matters most when generating with an *older* wallet + // against today's services, which is the whole point of this command: + // the wallet drives the merchant calls, so its auth has to be right. + merchantAuthToken: merchantAdminAccessToken, }); await walletClient.call( WalletApiOperation.TestingWaitTransactionsFinal,