gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: CLI tests.


From: gnunet
Subject: [libeufin] branch master updated: CLI tests.
Date: Mon, 13 Mar 2023 12:24:35 +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 b585b1bc CLI tests.
b585b1bc is described below

commit b585b1bc588b1e4599d03f8bfecf11471aa6b258
Author: MS <ms@taler.net>
AuthorDate: Mon Mar 13 12:21:35 2023 +0100

    CLI tests.
    
    Deleting DB records via dedicated "reset-tables"
    subcommands from Kotlin.
---
 cli/tests/launch_services.sh | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/cli/tests/launch_services.sh b/cli/tests/launch_services.sh
index 30ba44e1..b3fcc4eb 100755
--- a/cli/tests/launch_services.sh
+++ b/cli/tests/launch_services.sh
@@ -23,12 +23,21 @@ jq --version &> /dev/null || (echo "'jq' command not 
found"; exit 77)
 curl --version &> /dev/null || (echo "'curl' command not found"; exit 77)
 
 SQLITE_FILE_PATH=/tmp/libeufin-cli-test.sqlite3
-DB_CONN=jdbc:postgresql://localhost:5432/taler?user=$(whoami)
-# export LIBEUFIN_SANDBOX_DB_CONNECTION=jdbc:sqlite:$SQLITE_FILE_PATH
+getDbConn () {
+  if test withPostgres == "${1:-}"; then
+    echo "jdbc:postgresql://localhost:5432/taler?user=$(whoami)"
+    return
+  fi
+  echo "jdbc:sqlite:${SQLITE_FILE_PATH}"
+}
+
+DB_CONN=`getDbConn`
 export LIBEUFIN_SANDBOX_DB_CONNECTION=$DB_CONN
+export LIBEUFIN_NEXUS_DB_CONNECTION=$DB_CONN
 
 echo -n Delete previous data...
-rm -f $SQLITE_FILE_PATH
+libeufin-sandbox reset-tables
+libeufin-nexus reset-tables
 echo DONE
 echo -n Configure the default demobank with MANA...
 libeufin-sandbox config --with-signup-bonus --currency MANA default
@@ -48,7 +57,6 @@ echo -n Wait for the bank...
 curl --max-time 2 --retry-connrefused --retry-delay 1 --retry 10 
http://localhost:5000/ &> /dev/null
 echo DONE
 echo -n Make one superuser at Nexus...
-export LIBEUFIN_NEXUS_DB_CONNECTION=$DB_CONN
 libeufin-nexus superuser test-user --password x
 echo DONE
 echo -n Launching Nexus...

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]