aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-withdrawal-abort-bank.ts
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-04-04 23:08:21 -0600
committerIván Ávalos <avalos@disroot.org>2024-05-15 09:41:30 -0600
commitf4160c6d187794a643e4d4e7556338e69700a2d2 (patch)
tree94ef2fca5d32d4172cbbfec6b7cc9480e537cf2f /packages/taler-harness/src/integrationtests/test-withdrawal-abort-bank.ts
parent2223b3a6c72163038bee56087f2f576bb1651bc3 (diff)
downloadwallet-core-f4160c6d187794a643e4d4e7556338e69700a2d2.tar.xz
harness: make some tests run against libeufin
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-withdrawal-abort-bank.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-withdrawal-abort-bank.ts17
1 files changed, 7 insertions, 10 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-withdrawal-abort-bank.ts b/packages/taler-harness/src/integrationtests/test-withdrawal-abort-bank.ts
index 39389e3c6..5ae53b69d 100644
--- a/packages/taler-harness/src/integrationtests/test-withdrawal-abort-bank.ts
+++ b/packages/taler-harness/src/integrationtests/test-withdrawal-abort-bank.ts
@@ -20,7 +20,7 @@
import { TalerCorebankApiClient, TalerErrorCode } 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";
/**
* Run test for basic, bank-integrated withdrawal.
@@ -28,17 +28,14 @@ import { createSimpleTestkudosEnvironmentV2 } from "../harness/helpers.js";
export async function runWithdrawalAbortBankTest(t: GlobalTestState) {
// Set up test environment
- const { walletClient, bank, exchange } =
- await createSimpleTestkudosEnvironmentV2(t);
+ const { walletClient, bankClient, exchange } =
+ await createSimpleTestkudosEnvironmentV3(t);
// Create a withdrawal operation
- const bankAccessApiClient = new TalerCorebankApiClient(
- bank.corebankApiBaseUrl,
- );
- const user = await bankAccessApiClient.createRandomBankUser();
- bankAccessApiClient.setAuth(user);
- const wop = await bankAccessApiClient.createWithdrawalOperation(
+ const user = await bankClient.createRandomBankUser();
+ bankClient.setAuth(user);
+ const wop = await bankClient.createWithdrawalOperation(
user.username,
"TESTKUDOS:10",
);
@@ -53,7 +50,7 @@ export async function runWithdrawalAbortBankTest(t: GlobalTestState) {
// Abort it
- await bankAccessApiClient.abortWithdrawalOperation(wop);
+ await bankClient.abortWithdrawalOperationV2(user.username, wop);
// Withdraw