libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 77c6e99c0d0f78d0fe2fba46f51be78dd0e6d30d
parent 135d258eb3c2eac6925cfeb85d36a1f1c43d75fc
Author: ms <ms@taler.net>
Date:   Thu, 19 May 2022 07:25:37 +0200

account deletion

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/Helpers.kt | 2++
Msandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 10++++++++++
Mutil/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 @@ -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 @@ -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 @@ -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)