gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: linting


From: gnunet
Subject: [taler-wallet-core] branch master updated: linting
Date: Wed, 04 Aug 2021 23:16:14 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 9769f696 linting
9769f696 is described below

commit 9769f6960173ba94d2e19dbb438c6bdf8764f1cd
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Aug 4 23:16:08 2021 +0200

    linting
---
 packages/taler-util/src/talerconfig.ts |  2 +-
 packages/taler-wallet-cli/src/lint.ts  | 16 +++++++++++++---
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/packages/taler-util/src/talerconfig.ts 
b/packages/taler-util/src/talerconfig.ts
index 8652a8b0..dbdb9350 100644
--- a/packages/taler-util/src/talerconfig.ts
+++ b/packages/taler-util/src/talerconfig.ts
@@ -544,7 +544,7 @@ export class Configuration {
    * Get lower-cased section names.
    */
   getSectionNames(): string[] {
-    return Object.keys(this.sectionMap).map((x) => x.toLowerCase());
+    return Object.keys(this.sectionMap).map((x) => x.toUpperCase());
   }
 
   getString(section: string, option: string): ConfigValue<string> {
diff --git a/packages/taler-wallet-cli/src/lint.ts 
b/packages/taler-wallet-cli/src/lint.ts
index 61b6d622..e6155b48 100644
--- a/packages/taler-wallet-cli/src/lint.ts
+++ b/packages/taler-wallet-cli/src/lint.ts
@@ -198,6 +198,16 @@ async function checkWireConfig(context: LintContext): 
Promise<void> {
     }
   }
 
+  if (accounts.size === 0) {
+    console.log(
+      "error: No accounts configured (no sections EXCHANGE_ACCOUNT-*).",
+    );
+    if (!context.cont) {
+      console.log("Aborting further checks.");
+      process.exit(1);
+    }
+  }
+
   for (const acc of accounts) {
     if (!credentials.has(acc)) {
       console.log(
@@ -207,19 +217,19 @@ async function checkWireConfig(context: LintContext): 
Promise<void> {
   }
 
   for (const acc of accounts) {
-    // test debit history
+    // test credit history
     {
       const res = await sh(
         context,
         "su -l --shell /bin/sh " +
-          "-c 'taler-exchange-wire-gateway-client -s 
exchange-accountcredentials-${acc} --debit-history'" +
+          `-c 'taler-exchange-wire-gateway-client -s 
exchange-accountcredentials-${acc} --credit-history'` +
           "taler-exchange-wire",
       );
       if (res.status != 0) {
         console.log(res.stdout);
         console.log(res.stderr);
         console.log(
-          "error: Could not run wirewatch. Please review logs above.",
+          "error: Could not run taler-exchange-wire-gateway-client. Please 
review logs above.",
         );
         if (!context.cont) {
           console.log("Aborting further checks.");

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]