commit 06a57bdce3d5afad3e2f82f0c86180eba61825f9
parent 537e5d6a77664d3968f68106e105855f692ff0f8
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Thu, 17 Oct 2019 19:20:55 +0200
add comment
Diffstat:
3 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/sandbox/src/main/kotlin/Main.kt b/sandbox/src/main/kotlin/Main.kt
@@ -303,8 +303,8 @@ private suspend fun ApplicationCall.ebicsweb() {
try {
loadRsaPublicKey(
- keyObject.value.signaturePubKeyInfo.pubKeyValue.rsaKeyValue.exponent,
- keyObject.value.signaturePubKeyInfo.pubKeyValue.rsaKeyValue.modulus
+ keyObject.value.signaturePubKeyInfo.pubKeyValue.rsaKeyValue.modulus,
+ keyObject.value.signaturePubKeyInfo.pubKeyValue.rsaKeyValue.exponent
)
} catch (e: Exception) {
logger.info("User gave bad key, not storing it")
@@ -316,10 +316,7 @@ private suspend fun ApplicationCall.ebicsweb() {
return
}
- // store key in database
-
-
-
+ // At this point, key is valid, and can be stored in database
}
}
diff --git a/sandbox/src/test/kotlin/DbTest.kt b/sandbox/src/test/kotlin/DbTest.kt
@@ -1,6 +1,7 @@
package tech.libeufin.sandbox
import org.jetbrains.exposed.dao.EntityID
+import org.jetbrains.exposed.sql.Column
import org.jetbrains.exposed.sql.transactions.transaction
import org.junit.BeforeClass
import org.junit.Test
@@ -31,4 +32,16 @@ class DbTest {
subscriber.authorizationKey = key
}
}
+
+ @Test
+ fun nestedQuery() {
+
+ /***
+ * Some query like the following is needed:
+ *
+ * val result = EbicsSubscriber.find {
+ * EbicsSubscribers.userId.userId eq "u1"
+ * }.first()
+ */
+ }
}
\ No newline at end of file
diff --git a/sandbox/src/test/kotlin/InnerIniLoadTest.kt b/sandbox/src/test/kotlin/InnerIniLoadTest.kt
@@ -25,6 +25,4 @@ class InnerIniLoadTest {
loadRsaPublicKey(modulus, exponent)
}
-
-
}
\ No newline at end of file