[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated (35e3c131 -> 247de271)
From: |
gnunet |
Subject: |
[libeufin] branch master updated (35e3c131 -> 247de271) |
Date: |
Thu, 05 Jan 2023 17:19:14 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a change to branch master
in repository libeufin.
from 35e3c131 Circuit API.
new c3e97528 fix test compilation warnings
new 247de271 CLI test: preliminary checks for tools.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
Makefile | 1 +
cli/bin/circuit_test.sh | 5 +++++
nexus/src/test/kotlin/SandboxCircuitApiTest.kt | 4 ++--
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index e01ef6fb..842e20c4 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@ assemble:
.PHONY: check
check:
@./gradlew check
+ @cd ./cli/bin && ./circuit_test.sh
.PHONY: parse
diff --git a/cli/bin/circuit_test.sh b/cli/bin/circuit_test.sh
index b8e10fa3..997351cc 100755
--- a/cli/bin/circuit_test.sh
+++ b/cli/bin/circuit_test.sh
@@ -5,10 +5,15 @@
set -eu
+jq --version &> /dev/null || (echo "'jq' command not found"; exit 77)
+curl --version &> /dev/null || (echo "'curl' command not found"; exit 77)
+
DB_PATH=/tmp/circuit-test.sqlite3
export LIBEUFIN_SANDBOX_DB_CONNECTION=jdbc:sqlite:$DB_PATH
export LIBEUFIN_CASHOUT_TEST_TAN=secret-tan
+echo TESTING THE CLI SIDE OF THE CIRCUIT API
+
echo -n Delete previous data..
rm -f $DB_PATH
echo DONE
diff --git a/nexus/src/test/kotlin/SandboxCircuitApiTest.kt
b/nexus/src/test/kotlin/SandboxCircuitApiTest.kt
index 61699ca6..11ca7f14 100644
--- a/nexus/src/test/kotlin/SandboxCircuitApiTest.kt
+++ b/nexus/src/test/kotlin/SandboxCircuitApiTest.kt
@@ -121,7 +121,7 @@ class SandboxCircuitApiTest {
// Check that the status is pending.
assert(mapper.readTree(R.readBytes()).get("status").asText()
== "PENDING")
// Now confirm the operation.
- R =
client.post("/demobanks/default/circuit-api/cashouts/${operationUuid}/confirm")
{
+
client.post("/demobanks/default/circuit-api/cashouts/${operationUuid}/confirm")
{
basicAuth("shop", "secret")
contentType(ContentType.Application.Json)
setBody("{\"tan\":\"foo\"}")
@@ -245,7 +245,7 @@ class SandboxCircuitApiTest {
}
assert(R.status.value == HttpStatusCode.OK.value)
// Change user balance.
- val account = transaction {
+ transaction {
val account = BankAccountEntity.find {
BankAccountsTable.label eq "shop"
}.firstOrNull() ?: throw Exception("Circuit test
account not found in the database!")
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libeufin] branch master updated (35e3c131 -> 247de271),
gnunet <=