[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libeufin] branch master updated: add comment
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libeufin] branch master updated: add comment |
Date: |
Thu, 17 Oct 2019 19:21:04 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 06a57bd add comment
06a57bd is described below
commit 06a57bdce3d5afad3e2f82f0c86180eba61825f9
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Oct 17 19:20:55 2019 +0200
add comment
---
sandbox/src/main/kotlin/Main.kt | 9 +++------
sandbox/src/test/kotlin/DbTest.kt | 13 +++++++++++++
sandbox/src/test/kotlin/InnerIniLoadTest.kt | 2 --
3 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/sandbox/src/main/kotlin/Main.kt b/sandbox/src/main/kotlin/Main.kt
index aaa6fd3..b99ca07 100644
--- 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
index 1f99b69..69fbcde 100644
--- 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
index 74fb724..4c51c50 100644
--- 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
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libeufin] branch master updated: add comment,
gnunet <=