[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/02: wallet-core: make bank access API URL optiona
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/02: wallet-core: make bank access API URL optional in runIntegrationTest |
Date: |
Mon, 12 Sep 2022 14:09:35 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit fc413bb5eca2171abb93b96e9b86f7b76c0a27af
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Sep 12 14:09:28 2022 +0200
wallet-core: make bank access API URL optional in runIntegrationTest
---
packages/taler-util/src/walletTypes.ts | 4 ++--
packages/taler-wallet-core/src/operations/testing.ts | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/packages/taler-util/src/walletTypes.ts
b/packages/taler-util/src/walletTypes.ts
index 95772a58..e79aa0b3 100644
--- a/packages/taler-util/src/walletTypes.ts
+++ b/packages/taler-util/src/walletTypes.ts
@@ -874,7 +874,7 @@ export const codecForTestPayArgs = (): Codec<TestPayArgs> =>
export interface IntegrationTestArgs {
exchangeBaseUrl: string;
bankBaseUrl: string;
- bankAccessApiBaseUrl: string;
+ bankAccessApiBaseUrl?: string;
merchantBaseUrl: string;
merchantAuthToken?: string;
amountToWithdraw: string;
@@ -889,7 +889,7 @@ export const codecForIntegrationTestArgs = ():
Codec<IntegrationTestArgs> =>
.property("merchantAuthToken", codecOptional(codecForString()))
.property("amountToSpend", codecForAmountString())
.property("amountToWithdraw", codecForAmountString())
- .property("bankAccessApiBaseUrl", codecForAmountString())
+ .property("bankAccessApiBaseUrl", codecOptional(codecForAmountString()))
.build("IntegrationTestArgs");
export interface AddExchangeRequest {
diff --git a/packages/taler-wallet-core/src/operations/testing.ts
b/packages/taler-wallet-core/src/operations/testing.ts
index a5aa1106..5c54d22c 100644
--- a/packages/taler-wallet-core/src/operations/testing.ts
+++ b/packages/taler-wallet-core/src/operations/testing.ts
@@ -353,7 +353,7 @@ export async function runIntegrationTest(
await withdrawTestBalance(ws, {
amount: args.amountToWithdraw,
bankBaseUrl: args.bankBaseUrl,
- bankAccessApiBaseUrl: args.bankAccessApiBaseUrl,
+ bankAccessApiBaseUrl: args.bankAccessApiBaseUrl ?? args.bankBaseUrl,
exchangeBaseUrl: args.exchangeBaseUrl,
});
await ws.runUntilDone();
@@ -382,7 +382,7 @@ export async function runIntegrationTest(
await withdrawTestBalance(ws, {
amount: Amounts.stringify(withdrawAmountTwo),
bankBaseUrl: args.bankBaseUrl,
- bankAccessApiBaseUrl: args.bankAccessApiBaseUrl,
+ bankAccessApiBaseUrl: args.bankAccessApiBaseUrl ?? args.bankBaseUrl,
exchangeBaseUrl: args.exchangeBaseUrl,
});
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.