gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] 01/02: nexus: implementing --check-full-config


From: gnunet
Subject: [libeufin] 01/02: nexus: implementing --check-full-config
Date: Thu, 26 Oct 2023 18:35:26 +0200

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

ms pushed a commit to branch master
in repository libeufin.

commit 0a176158746167e5fb4fc7c2db3f1df031e80e83
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 26 18:33:57 2023 +0200

    nexus: implementing --check-full-config
---
 .../main/kotlin/tech/libeufin/nexus/EbicsSetup.kt  | 15 +++++-
 nexus/src/test/kotlin/pain001.xml                  | 63 ----------------------
 2 files changed, 14 insertions(+), 64 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt
index 95a5bf25..f50d9aec 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt
@@ -428,7 +428,20 @@ class EbicsSetup: CliktCommand("Set up the EBICS 
subscriber") {
     override fun run() {
         val cfg = extractEbicsConfig(this.configFile)
         if (checkFullConfig) {
-            throw NotImplementedError("--check-full-config flag not 
implemented")
+            doOrFail {
+                cfg.config.requireString("nexus-ebics-submit", "frequency")
+                cfg.config.requireString("nexus-ebics-fetch", "frequency")
+                cfg.config.requireString("nexus-ebics-fetch", 
"statement-log-directory")
+                cfg.config.requireString("nexus-httpd", "port")
+                cfg.config.requireString("nexus-httpd", "unixpath")
+                cfg.config.requireString("nexus-httpd", "serve")
+                cfg.config.requireString("nexus-httpd-wire-gateway-facade", 
"enabled")
+                cfg.config.requireString("nexus-httpd-wire-gateway-facade", 
"auth_method")
+                cfg.config.requireString("nexus-httpd-wire-gateway-facade", 
"auth_token")
+                cfg.config.requireString("nexus-httpd-revenue-facade", 
"enabled")
+                cfg.config.requireString("nexus-httpd-revenue-facade", 
"auth_method")
+                cfg.config.requireString("nexus-httpd-revenue-facade", 
"auth_token")
+            }
         }
         // Config is sane.  Go (maybe) making the private keys.
         val privsMaybe = preparePrivateKeys(cfg.clientPrivateKeysFilename)
diff --git a/nexus/src/test/kotlin/pain001.xml 
b/nexus/src/test/kotlin/pain001.xml
deleted file mode 100644
index 4fd0eba8..00000000
--- a/nexus/src/test/kotlin/pain001.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.09" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.001.001.09 
pain.001.001.09.ch.03.xsd">
-    <CstmrCdtTrfInitn>
-        <GrpHdr>
-            <MsgId>random</MsgId>
-            <CreDtTm>2023-10-26T12:54:13.423443377Z</CreDtTm>
-            <NbOfTxs>1</NbOfTxs>
-            <CtrlSum>TalerAmount(value=4, fraction=0, currency=CHF)</CtrlSum>
-            <InitgPty>
-                <Nm>Marcello Stanisci</Nm>
-            </InitgPty>
-        </GrpHdr>
-        <PmtInf>
-            <PmtInfId>NOT GIVEN</PmtInfId>
-            <PmtMtd>TRF</PmtMtd>
-            <BtchBookg>true</BtchBookg>
-            <NbOfTxs>1</NbOfTxs>
-            <CtrlSum>TalerAmount(value=4, fraction=0, currency=CHF)</CtrlSum>
-            <PmtTpInf>
-                <SvcLvl>
-                    <Cd>SDVA</Cd>
-                </SvcLvl>
-            </PmtTpInf>
-            <ReqdExctnDt>2023-10-26Z</ReqdExctnDt>
-            <Dbtr>
-                <Nm>Marcello Stanisci</Nm>
-            </Dbtr>
-            <DbtrAcct>
-                <Id>
-                    <IBAN>not-used-yet</IBAN>
-                </Id>
-            </DbtrAcct>
-            <DbtrAgt>
-                <FinInstnId>
-                    <BICFI>POFICHBE</BICFI>
-                </FinInstnId>
-            </DbtrAgt>
-            <ChrgBr>SLEV</ChrgBr>
-            <CdtTrfTxInf>
-                <PmtId>
-                    <InstrId>NOT PROVIDED</InstrId>
-                    <EndToEndId>NOT PROVIDED</EndToEndId>
-                </PmtId>
-                <Amt>
-                    <InstdAmt Ccy="CHF">4</InstdAmt>
-                </Amt>
-                <CdtrAgt>
-                    <FinInstnId>
-                        <BICFI>BIC</BICFI>
-                    </FinInstnId>
-                </CdtrAgt>
-                <CdtrAcct>
-                    <Id>
-                        <IBAN>INVALID</IBAN>
-                    </Id>
-                </CdtrAcct>
-                <RmtInf>
-                    <Ustrd>Test reimbursement</Ustrd>
-                </RmtInf>
-            </CdtTrfTxInf>
-        </PmtInf>
-    </CstmrCdtTrfInitn>
-</Document>
\ No newline at end of file

-- 
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]