[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.
- [libeufin] branch master updated (048e0ada -> 45147878), gnunet, 2023/01/20
- [libeufin] 03/09: Circuit API., gnunet, 2023/01/20
- [libeufin] 02/09: 204 responses with less code., gnunet, 2023/01/20
- [libeufin] 04/09: testing the previous change, gnunet, 2023/01/20
- [libeufin] 08/09: Error management., gnunet, 2023/01/20
- [libeufin] 06/09: CLI, gnunet, 2023/01/20
- [libeufin] 07/09: adapt test,
gnunet <=
- [libeufin] 01/09: CLI., gnunet, 2023/01/20
- [libeufin] 09/09: revert name change to match the docs, gnunet, 2023/01/20
- [libeufin] 05/09: Circuit API., gnunet, 2023/01/20