aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2021-02-12 21:51:09 +0100
committerMS <ms@taler.net>2021-02-12 21:51:09 +0100
commit118975fee3568f773c75b26753086ecdde182db4 (patch)
tree84c76c4de47b5db8bcc05c428eaee3e640ec98fd
parent2bfb7853fdb85b857818b5ab79a02b9c79a3232c (diff)
randomize IBAN for tests
-rw-r--r--packages/taler-wallet-cli/src/integrationtests/libeufin.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
index 04e677133..c96125d7c 100644
--- a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts
@@ -252,7 +252,7 @@ export interface SimulateIncomingTransactionRequest {
* data that is required to initialize a new user + Ebics
* connection thereof.
*/
-class NexusUserBundle {
+export class NexusUserBundle {
userReq: CreateNexusUserRequest;
connReq: CreateEbicsBankConnectionRequest;
twg: CreateTalerWireGatewayFacadeRequest;
@@ -291,13 +291,15 @@ class NexusUserBundle {
* customer, associating their bank account with a Ebics
* subscriber.
*/
-class SandboxUserBundle {
+export class SandboxUserBundle {
ebicsBankAccount: CreateEbicsBankAccountRequest;
constructor(salt: string) {
this.ebicsBankAccount = {
currency: "EUR",
- bic: "DEUTDEBB101", // <= FIXME: properly randomize
- iban: "IBAN", // <= FIXME: properly randomize
+ bic: "BELADEBEXXX",
+ iban: `DE715001051796${(Math.random() * 100000000)
+ .toString()
+ .substring(0, 8)}`,
label: `remote-account-${salt}`,
name: `Taler Exchange: ${salt}`,
subscriber: {