[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Testing account deletion.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Testing account deletion. |
Date: |
Mon, 02 Oct 2023 16:37:05 +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 4e74dd31 Testing account deletion.
4e74dd31 is described below
commit 4e74dd31c91e3209c34a381f45a666e4c3c477fb
Author: MS <ms@taler.net>
AuthorDate: Mon Oct 2 16:36:02 2023 +0200
Testing account deletion.
---
bank/src/test/kotlin/LibeuFinApiTest.kt | 9 ++++++++-
bank/src/test/kotlin/TalerApiTest.kt | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/bank/src/test/kotlin/LibeuFinApiTest.kt
b/bank/src/test/kotlin/LibeuFinApiTest.kt
index d9a5a3c9..3b63183a 100644
--- a/bank/src/test/kotlin/LibeuFinApiTest.kt
+++ b/bank/src/test/kotlin/LibeuFinApiTest.kt
@@ -558,10 +558,17 @@ class LibeuFinApiTest {
}
client.delete("/accounts/foo") {
basicAuth("admin", "pass")
- expectSuccess = false
+ expectSuccess = true
}.apply {
assert(this.status == HttpStatusCode.NoContent)
}
+ // Trying again must yield 404
+ client.delete("/accounts/foo") {
+ basicAuth("admin", "pass")
+ expectSuccess = false
+ }.apply {
+ assert(this.status == HttpStatusCode.NotFound)
+ }
// fail to delete, due to a non-zero balance.
db.customerCreate(customerBar).apply {
assert(this != null)
diff --git a/bank/src/test/kotlin/TalerApiTest.kt
b/bank/src/test/kotlin/TalerApiTest.kt
index 9be3de8b..8dfda8d9 100644
--- a/bank/src/test/kotlin/TalerApiTest.kt
+++ b/bank/src/test/kotlin/TalerApiTest.kt
@@ -244,7 +244,7 @@ class TalerApiTest {
setBody(deflater("""
{"amount": "KUDOS:44",
"reserve_pub": "RESERVE-PUB-TEST",
- "debit_account":
"${"payto://iban/BAR-IBAN-ABC".lowercase()}"
+ "debit_account": "${"payto://iban/BAR-IBAN-ABC"}"
}
""".trimIndent()))
}
--
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: Testing account deletion.,
gnunet <=