[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: bring unit tests to pass
From: |
gnunet |
Subject: |
[libeufin] branch master updated: bring unit tests to pass |
Date: |
Thu, 21 Jan 2021 15:21:39 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new cf4d21f bring unit tests to pass
cf4d21f is described below
commit cf4d21f5f0d8de8cc51de2a4fe525a57155cbcac
Author: MS <ms@taler.net>
AuthorDate: Thu Jan 21 15:21:35 2021 +0100
bring unit tests to pass
---
nexus/src/test/kotlin/DBTest.kt | 6 ++++--
nexus/src/test/kotlin/authentication.kt | 15 ---------------
sandbox/src/test/kotlin/DBTest.kt | 1 +
3 files changed, 5 insertions(+), 17 deletions(-)
diff --git a/nexus/src/test/kotlin/DBTest.kt b/nexus/src/test/kotlin/DBTest.kt
index e07a110..c0a263f 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 e0a0d75..0000000
--- 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
diff --git a/sandbox/src/test/kotlin/DBTest.kt
b/sandbox/src/test/kotlin/DBTest.kt
index eb074d1..5fb6e78 100644
--- 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 {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: bring unit tests to pass,
gnunet <=