aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-withdrawal-fees.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-withdrawal-fees.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-withdrawal-fees.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-withdrawal-fees.ts b/packages/taler-harness/src/integrationtests/test-withdrawal-fees.ts
index 0657d2da7..6fa15cc95 100644
--- a/packages/taler-harness/src/integrationtests/test-withdrawal-fees.ts
+++ b/packages/taler-harness/src/integrationtests/test-withdrawal-fees.ts
@@ -25,7 +25,7 @@ import {
ExchangeService,
GlobalTestState,
WalletCli,
- generateRandomPayto,
+ getTestHarnessPaytoForLabel,
setupDb,
} from "../harness/harness.js";
@@ -84,8 +84,8 @@ export async function runWithdrawalFeesTest(t: GlobalTestState) {
let receiverName = "Exchange";
let exchangeBankUsername = "exchange";
- let exchangeBankPassword = "mypw";
- let exchangePaytoUri = generateRandomPayto(exchangeBankUsername);
+ let exchangeBankPassword = "mypw-password";
+ let exchangePaytoUri = getTestHarnessPaytoForLabel(exchangeBankUsername);
await exchange.addBankAccount("1", {
accountName: exchangeBankUsername,
@@ -106,7 +106,7 @@ export async function runWithdrawalFeesTest(t: GlobalTestState) {
const bankClient = new TalerCorebankApiClient(bank.corebankApiBaseUrl, {
auth: {
username: "admin",
- password: "adminpw",
+ password: "admin-password",
},
});
@@ -138,7 +138,7 @@ export async function runWithdrawalFeesTest(t: GlobalTestState) {
bankClient.setAuth(user);
const wop = await bankClient.createWithdrawalOperation(user.username, amount);
- t.logStep("Hand it to the wallet")
+ t.logStep("Hand it to the wallet");
const details = await wallet.client.call(
WalletApiOperation.GetWithdrawalDetailsForUri,
@@ -165,25 +165,25 @@ export async function runWithdrawalFeesTest(t: GlobalTestState) {
t.assertAmountEquals(amountDetails.amountEffective, "TESTKUDOS:5");
t.assertAmountEquals(amountDetails.amountRaw, "TESTKUDOS:7.5");
- t.logStep("Complete all pending operations")
+ t.logStep("Complete all pending operations");
await wallet.runPending();
- t.logStep("Withdraw (AKA select)")
+ t.logStep("Withdraw (AKA select)");
await wallet.client.call(WalletApiOperation.AcceptBankIntegratedWithdrawal, {
exchangeBaseUrl: exchange.baseUrl,
talerWithdrawUri: wop.taler_withdraw_uri,
});
- t.logStep("Confirm it")
+ t.logStep("Confirm it");
await bankClient.confirmWithdrawalOperation(user.username, {
withdrawalOperationId: wop.withdrawal_id,
});
await wallet.runUntilDone();
- t.logStep("Check balance")
+ t.logStep("Check balance");
const balResp = await wallet.client.call(WalletApiOperation.GetBalances, {});
console.log(j2s(balResp));