diff options
| author | Sebastian <sebasjm@gmail.com> | 2023-09-10 15:38:43 -0300 | 
|---|---|---|
| committer | Sebastian <sebasjm@gmail.com> | 2023-09-10 15:38:43 -0300 | 
| commit | 905be0124a1b013d802db33265879d4b80501362 (patch) | |
| tree | 69e5a088d76205bd2e3a1022c71e02eb3101c5a1 /packages/taler-harness/src | |
| parent | 6c3cfa9be7a332c2cc8490f25ebd6c73c8244842 (diff) | |
more codespell
Diffstat (limited to 'packages/taler-harness/src')
| -rw-r--r-- | packages/taler-harness/src/harness/harness.ts | 23 | ||||
| -rw-r--r-- | packages/taler-harness/src/harness/libeufin.ts | 74 | 
2 files changed, 47 insertions, 50 deletions
| diff --git a/packages/taler-harness/src/harness/harness.ts b/packages/taler-harness/src/harness/harness.ts index 24e42099e..0c3c367af 100644 --- a/packages/taler-harness/src/harness/harness.ts +++ b/packages/taler-harness/src/harness/harness.ts @@ -565,7 +565,7 @@ class BankServiceBase {      protected globalTestState: GlobalTestState,      protected bankConfig: BankConfig,      protected configFile: string, -  ) {} +  ) { }  }  export interface HarnessExchangeBankAccount { @@ -580,8 +580,7 @@ export interface HarnessExchangeBankAccount {   */  export class FakebankService    extends BankServiceBase -  implements BankServiceHandle -{ +  implements BankServiceHandle {    proc: ProcessWrapper | undefined;    http = createPlatformHttpLib({ enableThrottling: false }); @@ -790,7 +789,7 @@ export class ExchangeService implements ExchangeServiceInterface {    async runWirewatchOnce() {      if (useLibeufinBank) { -      // Not even 2 secods showed to be enough! +      // Not even 2 seconds showed to be enough!        await waitMs(4000);      }      await runCommand( @@ -1013,7 +1012,7 @@ export class ExchangeService implements ExchangeServiceInterface {      private exchangeConfig: ExchangeConfig,      private configFilename: string,      private keyPair: EddsaKeyPair, -  ) {} +  ) { }    get name() {      return this.exchangeConfig.name; @@ -1369,7 +1368,7 @@ export class MerchantService implements MerchantServiceInterface {      private globalState: GlobalTestState,      private merchantConfig: MerchantConfig,      private configFilename: string, -  ) {} +  ) { }    private currentTimetravelOffsetMs: number | undefined; @@ -1707,7 +1706,7 @@ export class WalletService {    constructor(      private globalState: GlobalTestState,      private opts: WalletServiceOptions, -  ) {} +  ) { }    get socketPath() {      const unixPath = path.join( @@ -1816,7 +1815,7 @@ export class WalletClient {      return client.call(operation, payload);    } -  constructor(private args: WalletClientArgs) {} +  constructor(private args: WalletClientArgs) { }    async connect(): Promise<void> {      const waiter = this.waiter; @@ -1883,11 +1882,9 @@ export class WalletCli {            ? `--crypto-worker=${cliOpts.cryptoWorkerType}`            : "";          const logName = `wallet-${self.name}`; -        const command = `taler-wallet-cli ${ -          self.timetravelArg ?? "" -        } ${cryptoWorkerArg} --no-throttle -LTRACE --skip-defaults --wallet-db '${ -          self.dbfile -        }' api '${op}' ${shellWrap(JSON.stringify(payload))}`; +        const command = `taler-wallet-cli ${self.timetravelArg ?? "" +          } ${cryptoWorkerArg} --no-throttle -LTRACE --skip-defaults --wallet-db '${self.dbfile +          }' api '${op}' ${shellWrap(JSON.stringify(payload))}`;          const resp = await sh(self.globalTestState, logName, command);          logger.info("--- wallet core response ---");          logger.info(resp); diff --git a/packages/taler-harness/src/harness/libeufin.ts b/packages/taler-harness/src/harness/libeufin.ts index 9f3e7a5a0..caeea85ae 100644 --- a/packages/taler-harness/src/harness/libeufin.ts +++ b/packages/taler-harness/src/harness/libeufin.ts @@ -251,7 +251,7 @@ export interface NexusTask {    taskCronSpec: string;    // Only meaningful for "fetch" types.    taskParams: FetchParams; -  // Timestamp in secons when the next iteration will run. +  // Timestamp in seconds when the next iteration will run.    nextScheduledExecutionSec: number;    // Timestamp in seconds when the previous iteration ran.    prevScheduledExecutionSec: number; @@ -618,9 +618,9 @@ export class LibeufinCli {        this.globalTestState,        "libeufin-cli-createebicssubscriber",        "libeufin-cli sandbox ebicssubscriber create" + -        ` --host-id=${details.hostId}` + -        ` --partner-id=${details.partnerId}` + -        ` --user-id=${details.userId}`, +      ` --host-id=${details.hostId}` + +      ` --partner-id=${details.partnerId}` + +      ` --user-id=${details.userId}`,        this.env(),      );      console.log(stdout); @@ -634,13 +634,13 @@ export class LibeufinCli {        this.globalTestState,        "libeufin-cli-createebicsbankaccount",        "libeufin-cli sandbox ebicsbankaccount create" + -        ` --iban=${bankAccountDetails.iban}` + -        ` --bic=${bankAccountDetails.bic}` + -        ` --person-name='${bankAccountDetails.personName}'` + -        ` --account-name=${bankAccountDetails.accountName}` + -        ` --ebics-host-id=${sd.hostId}` + -        ` --ebics-partner-id=${sd.partnerId}` + -        ` --ebics-user-id=${sd.userId}`, +      ` --iban=${bankAccountDetails.iban}` + +      ` --bic=${bankAccountDetails.bic}` + +      ` --person-name='${bankAccountDetails.personName}'` + +      ` --account-name=${bankAccountDetails.accountName}` + +      ` --ebics-host-id=${sd.hostId}` + +      ` --ebics-partner-id=${sd.partnerId}` + +      ` --ebics-user-id=${sd.userId}`,        this.env(),      );      console.log(stdout); @@ -673,11 +673,11 @@ export class LibeufinCli {        this.globalTestState,        "libeufin-cli-createebicsconnection",        `libeufin-cli connections new-ebics-connection` + -        ` --ebics-url=${connectionDetails.ebicsUrl}` + -        ` --host-id=${connectionDetails.subscriberDetails.hostId}` + -        ` --partner-id=${connectionDetails.subscriberDetails.partnerId}` + -        ` --ebics-user-id=${connectionDetails.subscriberDetails.userId}` + -        ` ${connectionDetails.connectionName}`, +      ` --ebics-url=${connectionDetails.ebicsUrl}` + +      ` --host-id=${connectionDetails.subscriberDetails.hostId}` + +      ` --partner-id=${connectionDetails.subscriberDetails.partnerId}` + +      ` --ebics-user-id=${connectionDetails.subscriberDetails.userId}` + +      ` ${connectionDetails.connectionName}`,        {          ...process.env,          LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl, @@ -693,9 +693,9 @@ export class LibeufinCli {        this.globalTestState,        "libeufin-cli-createbackupfile",        `libeufin-cli connections export-backup` + -        ` --passphrase=${details.passphrase}` + -        ` --output-file=${details.outputFile}` + -        ` ${details.connectionName}`, +      ` --passphrase=${details.passphrase}` + +      ` --output-file=${details.outputFile}` + +      ` ${details.connectionName}`,        {          ...process.env,          LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl, @@ -711,7 +711,7 @@ export class LibeufinCli {        this.globalTestState,        "libeufin-cli-createkeyletter",        `libeufin-cli connections get-key-letter` + -        ` ${details.connectionName} ${details.outputFile}`, +      ` ${details.connectionName} ${details.outputFile}`,        {          ...process.env,          LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl, @@ -774,9 +774,9 @@ export class LibeufinCli {        this.globalTestState,        "libeufin-cli-importbankaccount",        "libeufin-cli connections import-bank-account" + -        ` --offered-account-id=${importDetails.offeredBankAccountName}` + -        ` --nexus-bank-account-id=${importDetails.nexusBankAccountName}` + -        ` ${importDetails.connectionName}`, +      ` --offered-account-id=${importDetails.offeredBankAccountName}` + +      ` --nexus-bank-account-id=${importDetails.nexusBankAccountName}` + +      ` ${importDetails.connectionName}`,        {          ...process.env,          LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl, @@ -822,12 +822,12 @@ export class LibeufinCli {        this.globalTestState,        "libeufin-cli-preparepayment",        `libeufin-cli accounts prepare-payment` + -        ` --creditor-iban=${details.creditorIban}` + -        ` --creditor-bic=${details.creditorBic}` + -        ` --creditor-name='${details.creditorName}'` + -        ` --payment-subject='${details.subject}'` + -        ` --payment-amount=${details.currency}:${details.amount}` + -        ` ${details.nexusBankAccountName}`, +      ` --creditor-iban=${details.creditorIban}` + +      ` --creditor-bic=${details.creditorBic}` + +      ` --creditor-name='${details.creditorName}'` + +      ` --payment-subject='${details.subject}'` + +      ` --payment-amount=${details.currency}:${details.amount}` + +      ` ${details.nexusBankAccountName}`,        {          ...process.env,          LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl, @@ -846,8 +846,8 @@ export class LibeufinCli {        this.globalTestState,        "libeufin-cli-submitpayments",        `libeufin-cli accounts submit-payments` + -        ` --payment-uuid=${paymentUuid}` + -        ` ${details.nexusBankAccountName}`, +      ` --payment-uuid=${paymentUuid}` + +      ` ${details.nexusBankAccountName}`,        {          ...process.env,          LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl, @@ -863,9 +863,9 @@ export class LibeufinCli {        this.globalTestState,        "libeufin-cli-new-anastasis-facade",        `libeufin-cli facades new-anastasis-facade` + -        ` --currency ${req.currency}` + -        ` --facade-name ${req.facadeName}` + -        ` ${req.connectionName} ${req.accountName}`, +      ` --currency ${req.currency}` + +      ` --facade-name ${req.facadeName}` + +      ` ${req.connectionName} ${req.accountName}`,        {          ...process.env,          LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl, @@ -881,9 +881,9 @@ export class LibeufinCli {        this.globalTestState,        "libeufin-cli-new-taler-wire-gateway-facade",        `libeufin-cli facades new-taler-wire-gateway-facade` + -        ` --currency ${req.currency}` + -        ` --facade-name ${req.facadeName}` + -        ` ${req.connectionName} ${req.accountName}`, +      ` --currency ${req.currency}` + +      ` --facade-name ${req.facadeName}` + +      ` ${req.connectionName} ${req.accountName}`,        {          ...process.env,          LIBEUFIN_NEXUS_URL: this.cliDetails.nexusUrl, | 
