diff options
author | MS <ms@taler.net> | 2021-01-21 15:21:35 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2021-01-21 15:21:35 +0100 |
commit | cf4d21f5f0d8de8cc51de2a4fe525a57155cbcac (patch) | |
tree | 58427c70350db69e6a21b09f931db3eff3f35aac /nexus | |
parent | e3f3caacf595f0de3db49da0d532bb77bc46aa9f (diff) | |
download | libeufin-cf4d21f5f0d8de8cc51de2a4fe525a57155cbcac.tar.gz libeufin-cf4d21f5f0d8de8cc51de2a4fe525a57155cbcac.tar.bz2 libeufin-cf4d21f5f0d8de8cc51de2a4fe525a57155cbcac.zip |
bring unit tests to pass
Diffstat (limited to 'nexus')
-rw-r--r-- | nexus/src/test/kotlin/DBTest.kt | 6 | ||||
-rw-r--r-- | nexus/src/test/kotlin/authentication.kt | 15 |
2 files changed, 4 insertions, 17 deletions
diff --git a/nexus/src/test/kotlin/DBTest.kt b/nexus/src/test/kotlin/DBTest.kt index e07a1106..c0a263ff 100644 --- 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 deleted file mode 100644 index e0a0d75b..00000000 --- a/nexus/src/test/kotlin/authentication.kt +++ /dev/null @@ -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 |