gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 07/09: adapt test


From: gnunet
Subject: [libeufin] 07/09: adapt test
Date: Fri, 20 Jan 2023 16:49:41 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

commit 5b18cb6a663394d6c29c87c62dafbee584964e9e
Author: MS <ms@taler.net>
AuthorDate: Fri Jan 20 16:22:34 2023 +0100

    adapt test
---
 nexus/src/test/kotlin/SandboxCircuitApiTest.kt | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/nexus/src/test/kotlin/SandboxCircuitApiTest.kt 
b/nexus/src/test/kotlin/SandboxCircuitApiTest.kt
index ce688e2b..aff63339 100644
--- a/nexus/src/test/kotlin/SandboxCircuitApiTest.kt
+++ b/nexus/src/test/kotlin/SandboxCircuitApiTest.kt
@@ -9,6 +9,7 @@ import io.ktor.server.testing.*
 import io.ktor.util.*
 import kotlinx.coroutines.runBlocking
 import org.jetbrains.exposed.sql.transactions.transaction
+import org.junit.Ignore
 import org.junit.Test
 import tech.libeufin.sandbox.*
 import java.io.File
@@ -28,7 +29,8 @@ class SandboxCircuitApiTest {
             }
         }
     }
-    // Tests that only account with a cash-out address are returned.
+
+    // Only tests that the calls get a 2xx status code.
     @Test
     fun listAccountsTest() {
         withTestDatabase {
@@ -36,15 +38,12 @@ class SandboxCircuitApiTest {
             testApplication {
                 application(sandboxApp)
                 var R = client.get("/demobanks/default/circuit-api/accounts") {
-                    expectSuccess = false
                     basicAuth("admin", "foo")
                 }
                 println(R.bodyAsText())
-                R = client.get("/demobanks/default/circuit-api/accounts/baz") {
-                    expectSuccess = false
+                client.get("/demobanks/default/circuit-api/accounts/baz") {
                     basicAuth("admin", "foo")
                 }
-                println(R.bodyAsText())
             }
         }
     }
@@ -100,7 +99,7 @@ class SandboxCircuitApiTest {
                         amountCredit = "unused"
                         subject = "unused"
                         creationTime = 0L
-                        tanChannel = "UNUSED" // change type to enum?
+                        tanChannel = SupportedTanChannels.FILE // change type 
to enum?
                         account = "unused"
                         state = CashoutOperationState.PENDING
                     }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]