gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: account deletion


From: gnunet
Subject: [libeufin] branch master updated: account deletion
Date: Thu, 19 May 2022 07:25:57 +0200

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

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 77c6e99c account deletion
77c6e99c is described below

commit 77c6e99c0d0f78d0fe2fba46f51be78dd0e6d30d
Author: ms <ms@taler.net>
AuthorDate: Thu May 19 07:25:37 2022 +0200

    account deletion
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt |  2 ++
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt    | 10 ++++++++++
 util/src/main/kotlin/XMLUtil.kt                          |  1 -
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt
index 79844e87..accbac02 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt
@@ -46,6 +46,8 @@ data class SandboxCamt(
 )
 
 /**
+ * Throws exception if the credentials are wrong.
+ *
  * Return:
  * - null if the authentication is disabled (during tests, for example).
  *   This facilitates tests because allows requests to lack entirely a
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index a995665a..63f62ab4 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -1444,6 +1444,16 @@ val sandboxApp: Application.() -> Unit = {
                     call.respond(ret)
                     return@get
                 }
+                post("/testing/unregister") {
+                    // Check demobank was created.
+                    ensureDemobank(call)
+                    transaction {
+                        val bankAccount = getBankAccountWithAuth(call)
+                        bankAccount.delete()
+                    }
+                    call.respond(object {})
+                    return@post
+                }
                 // Keeping the prefix "testing" not to break tests.
                 post("/testing/register") {
                     // Check demobank was created.
diff --git a/util/src/main/kotlin/XMLUtil.kt b/util/src/main/kotlin/XMLUtil.kt
index 26a40c4a..a4f3b1b3 100644
--- a/util/src/main/kotlin/XMLUtil.kt
+++ b/util/src/main/kotlin/XMLUtil.kt
@@ -439,7 +439,6 @@ class XMLUtil private constructor() {
             dsc.uriDereferencer = EbicsSigUriDereferencer()
             dsc.setProperty("javax.xml.crypto.dsig.cacheReference", true)
             sig.sign(dsc)
-            println("canon data: " + 
sig.signedInfo.canonicalizedData.readAllBytes().toString(Charsets.UTF_8))
             val innerSig = authSigNode.firstChild
             while (innerSig.hasChildNodes()) {
                 authSigNode.appendChild(innerSig.firstChild)

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