diff options
author | Iván Ávalos <avalos@disroot.org> | 2024-04-04 23:08:21 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2024-05-15 09:41:30 -0600 |
commit | f4160c6d187794a643e4d4e7556338e69700a2d2 (patch) | |
tree | 94ef2fca5d32d4172cbbfec6b7cc9480e537cf2f /packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts | |
parent | 2223b3a6c72163038bee56087f2f576bb1651bc3 (diff) | |
download | wallet-core-f4160c6d187794a643e4d4e7556338e69700a2d2.tar.xz |
harness: make some tests run against libeufin
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts b/packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts index 8ab029acc..cd7d137cc 100644 --- a/packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts +++ b/packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts @@ -27,7 +27,7 @@ import { } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { GlobalTestState } from "../harness/harness.js"; -import { createSimpleTestkudosEnvironmentV2 } from "../harness/helpers.js"; +import { createSimpleTestkudosEnvironmentV3 } from "../harness/helpers.js"; const logger = new Logger("test-withdrawal-manual.ts"); @@ -37,16 +37,12 @@ const logger = new Logger("test-withdrawal-manual.ts"); export async function runWithdrawalManualTest(t: GlobalTestState) { // Set up test environment - const { walletClient, bank, exchange, exchangeBankAccount } = - await createSimpleTestkudosEnvironmentV2(t); + const { walletClient, bankClient, exchange, exchangeBankAccount } = + await createSimpleTestkudosEnvironmentV3(t); // Create a withdrawal operation - const bankAccessApiClient = new TalerCorebankApiClient( - bank.corebankApiBaseUrl, - ); - - const user = await bankAccessApiClient.createRandomBankUser(); + const user = await bankClient.createRandomBankUser(); await walletClient.call(WalletApiOperation.AddExchange, { exchangeBaseUrl: exchange.baseUrl, @@ -80,8 +76,8 @@ export async function runWithdrawalManualTest(t: GlobalTestState) { exchangeBankAccount.wireGatewayApiBaseUrl, { auth: { - username: exchangeBankAccount.accountName, - password: exchangeBankAccount.accountPassword, + username: "admin", + password: "adminpw", }, }, ); |