[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Adding test-case for /history/incoming
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Adding test-case for /history/incoming loop bug. |
Date: |
Thu, 05 Oct 2023 17:48:02 +0200 |
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 e139e6bb Adding test-case for /history/incoming loop bug.
e139e6bb is described below
commit e139e6bb9213718968e574adb984a675a7e4cd48
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 5 17:45:26 2023 +0200
Adding test-case for /history/incoming loop bug.
---
bank/src/test/kotlin/TalerApiTest.kt | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/bank/src/test/kotlin/TalerApiTest.kt
b/bank/src/test/kotlin/TalerApiTest.kt
index 847ea8a1..af2c9644 100644
--- a/bank/src/test/kotlin/TalerApiTest.kt
+++ b/bank/src/test/kotlin/TalerApiTest.kt
@@ -207,6 +207,29 @@ class TalerApiTest {
}
}
+ /**
+ * FIXME: outlines loop bug in the /history/incoming handler.
+ */
+ @Test
+ fun historyLoop() {
+ val (db, ctx) = commonSetup()
+ // Give Foo reasonable debt allowance:
+ assert(
+ db.bankAccountSetMaxDebt(
+ 1L,
+ TalerAmount(1000000, 0, "KUDOS")
+ )
+ )
+ db.bankTransactionCreate(genTx("bogus foobar")).assertSuccess()
+ testApplication {
+ application {
+ corebankWebApp(db, ctx)
+ }
+
client.get("/accounts/bar/taler-wire-gateway/history/incoming?delta=1") {
+ basicAuth("bar", "secret")
+ }.apply { println(this.bodyAsText()) }
+ }
+ }
/**
* Testing the /history/incoming call from the TWG API.
*/
--
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: Adding test-case for /history/incoming loop bug.,
gnunet <=