commit cf4d21f5f0d8de8cc51de2a4fe525a57155cbcac
parent e3f3caacf595f0de3db49da0d532bb77bc46aa9f
Author: MS <ms@taler.net>
Date: Thu, 21 Jan 2021 15:21:35 +0100
bring unit tests to pass
Diffstat:
3 files changed, 5 insertions(+), 18 deletions(-)
diff --git a/nexus/src/test/kotlin/DBTest.kt b/nexus/src/test/kotlin/DBTest.kt
@@ -68,11 +68,13 @@ class DBTest {
TalerFacadeStateTable,
NexusUsersTable
)
- val user = NexusUserEntity.new("u") {
+ val user = NexusUserEntity.new {
+ username = "testuser"
passwordHash = "x"
superuser = true
}
- val facade = FacadeEntity.new("my-id") {
+ val facade = FacadeEntity.new {
+ facadeName = "testfacade"
type = "any"
creator = user
}
diff --git a/nexus/src/test/kotlin/authentication.kt b/nexus/src/test/kotlin/authentication.kt
@@ -1,15 +0,0 @@
-package tech.libeufin.nexus
-
-import org.junit.Test
-import junit.framework.TestCase.assertEquals
-import tech.libeufin.nexus.server.extractUserAndPassword
-
-class AuthenticationTest {
- @Test
- fun basicAuthHeaderTest() {
- val pass = extractUserAndPassword(
- "Basic dXNlcm5hbWU6cGFzc3dvcmQ="
- ).second
- assertEquals("password", pass);
- }
-}
-\ No newline at end of file
diff --git a/sandbox/src/test/kotlin/DBTest.kt b/sandbox/src/test/kotlin/DBTest.kt
@@ -79,6 +79,7 @@ class DBTest {
it[currency] = "EUR"
it[pmtInfId] = "0"
it[direction] = "DBIT"
+ it[accountServicerReference] = "test-account-servicer-reference"
}
}
val result = transaction {