Testing: convenience method to make default instances.
This will facilitate those tests needing a merchant backend, since it is currently not possible to make instances without having first a default instance defined.
This commit is contained in:
parent
3450c1617f
commit
58c3a17b3e
@ -1489,6 +1489,17 @@ export class MerchantService implements MerchantServiceInterface {
|
||||
config.write(this.configFilename);
|
||||
}
|
||||
|
||||
async addDefaultInstance(): Promise<void> {
|
||||
return await this.addInstance({
|
||||
id: "default",
|
||||
name: "Default Instance",
|
||||
paytoUris: [`payto://x-taler-bank/merchant-default`],
|
||||
auth: {
|
||||
method: "external",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async addInstance(
|
||||
instanceConfig: PartialMerchantInstanceConfig,
|
||||
): Promise<void> {
|
||||
|
@ -81,7 +81,7 @@ export async function runBankApiTest(t: GlobalTestState) {
|
||||
|
||||
await merchant.start();
|
||||
await merchant.pingUntilAvailable();
|
||||
|
||||
await merchant.addDefaultInstance();
|
||||
await merchant.addInstance({
|
||||
id: "minst1",
|
||||
name: "minst1",
|
||||
|
Loading…
Reference in New Issue
Block a user