wallet-core: make bank access API URL optional in runIntegrationTest
This commit is contained in:
parent
dbabb7b8d2
commit
fc413bb5ec
@ -874,7 +874,7 @@ export const codecForTestPayArgs = (): Codec<TestPayArgs> =>
|
|||||||
export interface IntegrationTestArgs {
|
export interface IntegrationTestArgs {
|
||||||
exchangeBaseUrl: string;
|
exchangeBaseUrl: string;
|
||||||
bankBaseUrl: string;
|
bankBaseUrl: string;
|
||||||
bankAccessApiBaseUrl: string;
|
bankAccessApiBaseUrl?: string;
|
||||||
merchantBaseUrl: string;
|
merchantBaseUrl: string;
|
||||||
merchantAuthToken?: string;
|
merchantAuthToken?: string;
|
||||||
amountToWithdraw: string;
|
amountToWithdraw: string;
|
||||||
@ -889,7 +889,7 @@ export const codecForIntegrationTestArgs = (): Codec<IntegrationTestArgs> =>
|
|||||||
.property("merchantAuthToken", codecOptional(codecForString()))
|
.property("merchantAuthToken", codecOptional(codecForString()))
|
||||||
.property("amountToSpend", codecForAmountString())
|
.property("amountToSpend", codecForAmountString())
|
||||||
.property("amountToWithdraw", codecForAmountString())
|
.property("amountToWithdraw", codecForAmountString())
|
||||||
.property("bankAccessApiBaseUrl", codecForAmountString())
|
.property("bankAccessApiBaseUrl", codecOptional(codecForAmountString()))
|
||||||
.build("IntegrationTestArgs");
|
.build("IntegrationTestArgs");
|
||||||
|
|
||||||
export interface AddExchangeRequest {
|
export interface AddExchangeRequest {
|
||||||
|
@ -353,7 +353,7 @@ export async function runIntegrationTest(
|
|||||||
await withdrawTestBalance(ws, {
|
await withdrawTestBalance(ws, {
|
||||||
amount: args.amountToWithdraw,
|
amount: args.amountToWithdraw,
|
||||||
bankBaseUrl: args.bankBaseUrl,
|
bankBaseUrl: args.bankBaseUrl,
|
||||||
bankAccessApiBaseUrl: args.bankAccessApiBaseUrl,
|
bankAccessApiBaseUrl: args.bankAccessApiBaseUrl ?? args.bankBaseUrl,
|
||||||
exchangeBaseUrl: args.exchangeBaseUrl,
|
exchangeBaseUrl: args.exchangeBaseUrl,
|
||||||
});
|
});
|
||||||
await ws.runUntilDone();
|
await ws.runUntilDone();
|
||||||
@ -382,7 +382,7 @@ export async function runIntegrationTest(
|
|||||||
await withdrawTestBalance(ws, {
|
await withdrawTestBalance(ws, {
|
||||||
amount: Amounts.stringify(withdrawAmountTwo),
|
amount: Amounts.stringify(withdrawAmountTwo),
|
||||||
bankBaseUrl: args.bankBaseUrl,
|
bankBaseUrl: args.bankBaseUrl,
|
||||||
bankAccessApiBaseUrl: args.bankAccessApiBaseUrl,
|
bankAccessApiBaseUrl: args.bankAccessApiBaseUrl ?? args.bankBaseUrl,
|
||||||
exchangeBaseUrl: args.exchangeBaseUrl,
|
exchangeBaseUrl: args.exchangeBaseUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user