[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Remove i18n workaroud.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Remove i18n workaroud. |
Date: |
Thu, 22 Dec 2022 16:03:57 +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 131340cb Remove i18n workaroud.
131340cb is described below
commit 131340cb83afa5a10dfb8a36da1b685a6e5b5e7d
Author: MS <ms@taler.net>
AuthorDate: Thu Dec 22 15:57:46 2022 +0100
Remove i18n workaroud.
Its problem was to catch ANY path without a handler,
resulting in hiding appropriate 404 errors. This workaround
was introduced when Sandbox used to serve the UI.
---
.../kotlin/{CircuitApiTest.kt => SandboxCircuitApiTest.kt} | 12 +++++++-----
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 11 -----------
2 files changed, 7 insertions(+), 16 deletions(-)
diff --git a/nexus/src/test/kotlin/CircuitApiTest.kt
b/nexus/src/test/kotlin/SandboxCircuitApiTest.kt
similarity index 52%
rename from nexus/src/test/kotlin/CircuitApiTest.kt
rename to nexus/src/test/kotlin/SandboxCircuitApiTest.kt
index 5cadfcd0..090e2d44 100644
--- a/nexus/src/test/kotlin/CircuitApiTest.kt
+++ b/nexus/src/test/kotlin/SandboxCircuitApiTest.kt
@@ -6,14 +6,16 @@ import kotlinx.coroutines.runBlocking
import org.junit.Test
import tech.libeufin.sandbox.sandboxApp
-class CircuitApiTest {
+class SandboxCircuitApiTest {
// Get /config
@Test
fun config() {
- withTestApplication(sandboxApp) {
- runBlocking {
- val r: String =
client.get("/demobanks/default/circuit-api/config")
- println(r)
+ withSandboxTestDatabase {
+ withTestApplication(sandboxApp) {
+ runBlocking {
+ val r: String =
client.get("/demobanks/default/circuit-api/config33")
+ println(r)
+ }
}
}
}
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 1bf9f73d..04d812d0 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -1071,17 +1071,6 @@ val sandboxApp: Application.() -> Unit = {
return@get
}
- /**
- * Requests falling here may only be generated by links
- * defined after the Python bank. This redirect is a workaround
- * to avoid 404.
- */
- get("/demobanks/{demobankid}/{lang?}/{register?}") {
- val demobankId = ensureNonNull(call.parameters["demobankid"])
- var url = "${call.request.getBaseUrl()}demobanks/$demobankId"
- call.respondRedirect(url,true)
- return@get
- }
get("/demobanks/{demobankid}") {
val demobank = ensureDemobank(call)
expectAdmin(call.request.basicAuth())
--
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: Remove i18n workaroud.,
gnunet <=