Adapt euFin tests to Demobank model.

Mostly, this change removes any mention of
the currency when bank accounts are created.
This commit is contained in:
ms 2021-10-23 11:35:54 +02:00
parent 2ec2161a7e
commit 835ac85a28
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
6 changed files with 0 additions and 21 deletions

View File

@ -158,7 +158,6 @@ export interface BankAccountInfo {
iban: string; iban: string;
bic: string; bic: string;
name: string; name: string;
currency: string;
label: string; label: string;
} }
@ -209,15 +208,6 @@ export class LibeufinSandboxService implements LibeufinSandboxServiceInterface {
} }
async start(): Promise<void> { async start(): Promise<void> {
const stdout = await sh(
this.globalTestState,
"libeufin-sandbox-config",
"libeufin-sandbox config localhost",
{
...process.env,
LIBEUFIN_SANDBOX_DB_CONNECTION: this.sandboxConfig.databaseJdbcUri,
},
);
this.sandboxProc = this.globalTestState.spawnService( this.sandboxProc = this.globalTestState.spawnService(
"libeufin-sandbox", "libeufin-sandbox",
["serve", "--port", `${this.sandboxConfig.httpPort}`], ["serve", "--port", `${this.sandboxConfig.httpPort}`],
@ -353,7 +343,6 @@ interface CreateEbicsBankAccountRequest {
bic: string; bic: string;
// human name // human name
name: string; name: string;
currency: string;
label: string; label: string;
} }
@ -452,7 +441,6 @@ export class SandboxUserBundle {
ebicsBankAccount: CreateEbicsBankAccountRequest; ebicsBankAccount: CreateEbicsBankAccountRequest;
constructor(salt: string) { constructor(salt: string) {
this.ebicsBankAccount = { this.ebicsBankAccount = {
currency: "EUR",
bic: "BELADEBEXXX", bic: "BELADEBEXXX",
iban: getRandomIban("DE"), iban: getRandomIban("DE"),
label: `remote-account-${salt}`, label: `remote-account-${salt}`,
@ -526,7 +514,6 @@ export class LibeufinCli {
this.globalTestState, this.globalTestState,
"libeufin-cli-createebicsbankaccount", "libeufin-cli-createebicsbankaccount",
"libeufin-cli sandbox ebicsbankaccount create" + "libeufin-cli sandbox ebicsbankaccount create" +
` --currency=${bankAccountDetails.currency}` +
` --iban=${bankAccountDetails.iban}` + ` --iban=${bankAccountDetails.iban}` +
` --bic=${bankAccountDetails.bic}` + ` --bic=${bankAccountDetails.bic}` +
` --person-name='${bankAccountDetails.personName}'` + ` --person-name='${bankAccountDetails.personName}'` +

View File

@ -63,7 +63,6 @@ export async function runLibeufinApiBankaccountTest(t: GlobalTestState) {
iban: "DE71500105179674997361", iban: "DE71500105179674997361",
bic: "BELADEBEXXX", bic: "BELADEBEXXX",
name: "mock", name: "mock",
currency: "EUR",
label: "mock", label: "mock",
}); });
await LibeufinNexusApi.createEbicsBankConnection(nexus, { await LibeufinNexusApi.createEbicsBankConnection(nexus, {

View File

@ -43,14 +43,12 @@ export async function runLibeufinApiSandboxCamtTest(t: GlobalTestState) {
bic: "BELADEBEXXX", bic: "BELADEBEXXX",
name: "Mock Name", name: "Mock Name",
label: "mock-account-0", label: "mock-account-0",
currency: "EUR"
}); });
await LibeufinSandboxApi.createBankAccount(sandbox, { await LibeufinSandboxApi.createBankAccount(sandbox, {
iban: "DE71500105179674997361", iban: "DE71500105179674997361",
bic: "BELADEBEXXX", bic: "BELADEBEXXX",
name: "Mock Name", name: "Mock Name",
label: "mock-account-1", label: "mock-account-1",
currency: "EUR"
}); });
await sandbox.makeTransaction("mock-account-0", "mock-account-1", "EUR:1", "+1"); await sandbox.makeTransaction("mock-account-0", "mock-account-1", "EUR:1", "+1");
await sandbox.makeTransaction("mock-account-0", "mock-account-1", "EUR:1", "+1"); await sandbox.makeTransaction("mock-account-0", "mock-account-1", "EUR:1", "+1");

View File

@ -40,7 +40,6 @@ export async function runLibeufinApiSandboxTransactionsTest(t: GlobalTestState)
bic: "BELADEBEXXX", bic: "BELADEBEXXX",
name: "Mock Name", name: "Mock Name",
label: "mock-account", label: "mock-account",
currency: "EUR"
}); });
await LibeufinSandboxApi.simulateIncomingTransaction( await LibeufinSandboxApi.simulateIncomingTransaction(
sandbox, sandbox,

View File

@ -94,7 +94,6 @@ export async function createLibeufinTestEnvironment(
partnerID: "partner01", partnerID: "partner01",
userID: "user01", userID: "user01",
}, },
currency: "EUR",
}); });
// Subscriber and bank Account for the merchant // Subscriber and bank Account for the merchant
// (Merchant doesn't need EBICS access, but sandbox right now only supports EBICS // (Merchant doesn't need EBICS access, but sandbox right now only supports EBICS
@ -114,7 +113,6 @@ export async function createLibeufinTestEnvironment(
partnerID: "partner02", partnerID: "partner02",
userID: "user02", userID: "user02",
}, },
currency: "EUR",
}); });
await LibeufinNexusApi.createEbicsBankConnection(libeufinNexus, { await LibeufinNexusApi.createEbicsBankConnection(libeufinNexus, {

View File

@ -40,7 +40,6 @@ export async function runLibeufinSandboxWireTransferCliTest(t: GlobalTestState)
bic: "BELADEBEXXX", bic: "BELADEBEXXX",
name: "Mock Name", name: "Mock Name",
label: "mock-account", label: "mock-account",
currency: "EUR"
}); });
await LibeufinSandboxApi.createBankAccount(sandbox, { await LibeufinSandboxApi.createBankAccount(sandbox, {
@ -48,7 +47,6 @@ export async function runLibeufinSandboxWireTransferCliTest(t: GlobalTestState)
bic: "BELADEBEXXX", bic: "BELADEBEXXX",
name: "Mock Name 2", name: "Mock Name 2",
label: "mock-account-2", label: "mock-account-2",
currency: "EUR"
}); });
await sandbox.makeTransaction( await sandbox.makeTransaction(
"mock-account", "mock-account-2", "EUR:1", "one!" "mock-account", "mock-account-2", "EUR:1", "one!"