diff options
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-multiexchange.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-multiexchange.ts | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-multiexchange.ts b/packages/taler-harness/src/integrationtests/test-multiexchange.ts index 26e843073..15fb4d6b1 100644 --- a/packages/taler-harness/src/integrationtests/test-multiexchange.ts +++ b/packages/taler-harness/src/integrationtests/test-multiexchange.ts @@ -17,16 +17,20 @@ /** * Imports. */ -import { Duration, TalerCorebankApiClient, TalerMerchantApi } from "@gnu-taler/taler-util"; +import { + Duration, + TalerCorebankApiClient, + TalerMerchantApi, +} from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { defaultCoinConfig } from "../harness/denomStructures.js"; import { - BankService, + BankService, ExchangeService, GlobalTestState, HarnessExchangeBankAccount, MerchantService, - generateRandomPayto, + getTestHarnessPaytoForLabel, setupDb, } from "../harness/harness.js"; import { @@ -34,7 +38,7 @@ import { makeTestPaymentV2, withdrawViaBankV2, withdrawViaBankV3, -} from "../harness/helpers.js"; +} from "../harness/environments.js"; /** * Run test for basic, bank-integrated withdrawal and payment. @@ -81,8 +85,8 @@ export async function runMultiExchangeTest(t: GlobalTestState) { bank.corebankApiBaseUrl, ).href, accountName: "myexchange", - accountPassword: "x", - accountPaytoUri: generateRandomPayto("myexchange"), + accountPassword: "password", + accountPaytoUri: getTestHarnessPaytoForLabel("myexchange"), }; let exchangeTwoBankAccount: HarnessExchangeBankAccount = { @@ -91,8 +95,8 @@ export async function runMultiExchangeTest(t: GlobalTestState) { bank.corebankApiBaseUrl, ).href, accountName: "myexchange2", - accountPassword: "x", - accountPaytoUri: generateRandomPayto("myexchange2"), + accountPassword: "password", + accountPaytoUri: getTestHarnessPaytoForLabel("myexchange2"), }; bank.setSuggestedExchange( @@ -107,7 +111,7 @@ export async function runMultiExchangeTest(t: GlobalTestState) { const bankClient = new TalerCorebankApiClient(bank.corebankApiBaseUrl, { auth: { username: "admin", - password: "adminpw", + password: "admin-password", }, }); @@ -152,7 +156,7 @@ export async function runMultiExchangeTest(t: GlobalTestState) { await merchant.addInstanceWithWireAccount({ id: "default", name: "Default Instance", - paytoUris: [generateRandomPayto("merchant-default")], + paytoUris: [getTestHarnessPaytoForLabel("merchant-default")], defaultWireTransferDelay: Duration.toTalerProtocolDuration( Duration.fromSpec({ minutes: 1 }), ), @@ -161,7 +165,7 @@ export async function runMultiExchangeTest(t: GlobalTestState) { await merchant.addInstanceWithWireAccount({ id: "minst1", name: "minst1", - paytoUris: [generateRandomPayto("minst1")], + paytoUris: [getTestHarnessPaytoForLabel("minst1")], defaultWireTransferDelay: Duration.toTalerProtocolDuration( Duration.fromSpec({ minutes: 1 }), ), |