From 516bda58bb53738fa4d2ae0b10a25e53c138180b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 11 Apr 2024 18:13:35 -0300 Subject: rename comments from demobank to bank --- packages/taler-harness/src/index.ts | 23 +++++++++++----------- .../src/integrationtests/test-exchange-deposit.ts | 4 ++-- .../src/integrationtests/test-exchange-purse.ts | 4 ++-- .../src/integrationtests/test-wallet-dbless.ts | 4 ++-- 4 files changed, 17 insertions(+), 18 deletions(-) (limited to 'packages/taler-harness') diff --git a/packages/taler-harness/src/index.ts b/packages/taler-harness/src/index.ts index 4a7b13317..2dcde39b9 100644 --- a/packages/taler-harness/src/index.ts +++ b/packages/taler-harness/src/index.ts @@ -55,8 +55,7 @@ import { WalletApiOperation, } from "@gnu-taler/taler-wallet-core"; import { - downloadExchangeInfo, - topupReserveWithDemobank, + downloadExchangeInfo, topupReserveWithBank, } from "@gnu-taler/taler-wallet-core/dbless"; import { deepStrictEqual } from "assert"; import fs from "fs"; @@ -403,7 +402,7 @@ deploymentCli const reserveKeyPair = await cryptoApi.createEddsaKeypair({}); const exchangeBaseUrl = "https://exchange.demo.taler.net/"; const exchangeInfo = await downloadExchangeInfo(exchangeBaseUrl, http); - await topupReserveWithDemobank({ + await topupReserveWithBank({ amount: "KUDOS:10" as AmountString, corebankApiBaseUrl: "https://bank.demo.taler.net/", exchangeInfo, @@ -431,7 +430,7 @@ deploymentCli const reserveKeyPair = await cryptoApi.createEddsaKeypair({}); const exchangeBaseUrl = "https://exchange.test.taler.net/"; const exchangeInfo = await downloadExchangeInfo(exchangeBaseUrl, http); - await topupReserveWithDemobank({ + await topupReserveWithBank({ amount: "TESTKUDOS:10" as AmountString, corebankApiBaseUrl: "https://bank.test.taler.net/", exchangeInfo, @@ -460,7 +459,7 @@ deploymentCli const reserveKeyPair = await cryptoApi.createEddsaKeypair({}); const exchangeBaseUrl = "http://localhost:8081/"; const exchangeInfo = await downloadExchangeInfo(exchangeBaseUrl, http); - await topupReserveWithDemobank({ + await topupReserveWithBank({ amount: "TESTKUDOS:10" as AmountString, corebankApiBaseUrl: "http://localhost:8082/taler-bank-access/", exchangeInfo, @@ -707,9 +706,9 @@ deploymentCli contact_data: email || phone ? { - email: email, - phone: phone, - } + email: email, + phone: phone, + } : undefined, }); @@ -1012,10 +1011,10 @@ deploymentCli credit_facade_credentials: bankUser && bankPassword ? { - type: "basic", - username: bankUser, - password: bankPassword, - } + type: "basic", + username: bankUser, + password: bankPassword, + } : undefined, }); if (createAccountResp.type != "ok") { diff --git a/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts b/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts index 05e6e153b..47a17a1f2 100644 --- a/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts +++ b/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts @@ -34,7 +34,7 @@ import { depositCoin, downloadExchangeInfo, findDenomOrThrow, - topupReserveWithDemobank, + topupReserveWithBank, withdrawCoin, } from "@gnu-taler/taler-wallet-core/dbless"; import { GlobalTestState } from "../harness/harness.js"; @@ -63,7 +63,7 @@ export async function runExchangeDepositTest(t: GlobalTestState) { const reserveKeyPair = await cryptoApi.createEddsaKeypair({}); - await topupReserveWithDemobank({ + await topupReserveWithBank({ http, amount: "TESTKUDOS:10" as AmountString, corebankApiBaseUrl: bank.corebankApiBaseUrl, diff --git a/packages/taler-harness/src/integrationtests/test-exchange-purse.ts b/packages/taler-harness/src/integrationtests/test-exchange-purse.ts index 83ee13d4e..6666e2d0b 100644 --- a/packages/taler-harness/src/integrationtests/test-exchange-purse.ts +++ b/packages/taler-harness/src/integrationtests/test-exchange-purse.ts @@ -40,7 +40,7 @@ import { checkReserve, downloadExchangeInfo, findDenomOrThrow, - topupReserveWithDemobank, + topupReserveWithBank, withdrawCoin, } from "@gnu-taler/taler-wallet-core/dbless"; import { GlobalTestState, harnessHttpLib } from "../harness/harness.js"; @@ -76,7 +76,7 @@ export async function runExchangePurseTest(t: GlobalTestState) { method: "GET", }); - await topupReserveWithDemobank({ + await topupReserveWithBank({ amount: "TESTKUDOS:10" as AmountString, http, reservePub: reserveKeyPair.pub, diff --git a/packages/taler-harness/src/integrationtests/test-wallet-dbless.ts b/packages/taler-harness/src/integrationtests/test-wallet-dbless.ts index fadb34732..a089d99b5 100644 --- a/packages/taler-harness/src/integrationtests/test-wallet-dbless.ts +++ b/packages/taler-harness/src/integrationtests/test-wallet-dbless.ts @@ -35,7 +35,7 @@ import { downloadExchangeInfo, findDenomOrThrow, refreshCoin, - topupReserveWithDemobank, + topupReserveWithBank, withdrawCoin, } from "@gnu-taler/taler-wallet-core/dbless"; import { GlobalTestState, harnessHttpLib } from "../harness/harness.js"; @@ -71,7 +71,7 @@ export async function runWalletDblessTest(t: GlobalTestState) { method: "GET", }); - await topupReserveWithDemobank({ + await topupReserveWithBank({ amount: "TESTKUDOS:10" as AmountString, http, reservePub: reserveKeyPair.pub, -- cgit v1.2.3