-fix test-revocation
This commit is contained in:
parent
f05a3450e0
commit
035e052c39
@ -14,7 +14,7 @@
|
|||||||
# and be allowed to create/drop databases.
|
# and be allowed to create/drop databases.
|
||||||
#
|
#
|
||||||
set -eu
|
set -eu
|
||||||
# set -x
|
#set -x
|
||||||
|
|
||||||
function get_iban() {
|
function get_iban() {
|
||||||
export LIBEUFIN_SANDBOX_USERNAME=$1
|
export LIBEUFIN_SANDBOX_USERNAME=$1
|
||||||
|
@ -591,16 +591,19 @@ exit_cleanup
|
|||||||
echo "Dumping database"
|
echo "Dumping database"
|
||||||
echo "Dumping PostgreSQL database: ${BASEDB}.sql"
|
echo "Dumping PostgreSQL database: ${BASEDB}.sql"
|
||||||
pg_dump -O $TARGET_DB | sed -e '/AS integer/d' > ${BASEDB}.sql
|
pg_dump -O $TARGET_DB | sed -e '/AS integer/d' > ${BASEDB}.sql
|
||||||
echo "Dumping libeufin database: ${BASEDB}-libeufin.sql"
|
echo "Dumping libeufin database: ${TARGET_DB}-libeufin-*.sql"
|
||||||
|
cd $MY_TMP_DIR
|
||||||
sqlite3 ${TARGET_DB}-nexus.sqlite3 ".dump" > ${BASEDB}-libeufin-nexus.sql
|
sqlite3 ${TARGET_DB}-nexus.sqlite3 ".dump" > ${BASEDB}-libeufin-nexus.sql
|
||||||
sqlite3 ${TARGET_DB}-sandbox.sqlite3 ".dump" > ${BASEDB}-libeufin-sandbox.sql
|
sqlite3 ${TARGET_DB}-sandbox.sqlite3 ".dump" > ${BASEDB}-libeufin-sandbox.sql
|
||||||
|
|
||||||
|
rm ${TARGET_DB}-sandbox.sqlite3 ${TARGET_DB}-nexus.sqlite3 # libeufin DB
|
||||||
|
|
||||||
|
cd $ORIGIN
|
||||||
|
|
||||||
echo $MASTER_PUB > ${BASEDB}.mpub
|
echo $MASTER_PUB > ${BASEDB}.mpub
|
||||||
|
|
||||||
# clean up
|
|
||||||
echo "Final clean up"
|
echo "Final clean up"
|
||||||
dropdb $TARGET_DB
|
dropdb $TARGET_DB
|
||||||
rm ${TARGET_DB}-sandbox.sqlite3 ${TARGET_DB}-nexus.sqlite3 # libeufin DB
|
|
||||||
|
|
||||||
echo "====================================="
|
echo "====================================="
|
||||||
echo " Finished generation of $BASEDB "
|
echo " Finished generation of $BASEDB "
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# This file is part of TALER
|
# This file is part of TALER
|
||||||
# Copyright (C) 2014-2021 Taler Systems SA
|
# Copyright (C) 2014-2022 Taler Systems SA
|
||||||
#
|
#
|
||||||
# TALER is free software; you can redistribute it and/or modify it under the
|
# TALER is free software; you can redistribute it and/or modify it under the
|
||||||
# terms of the GNU General Public License as published by the Free Software
|
# terms of the GNU General Public License as published by the Free Software
|
||||||
@ -1207,7 +1207,7 @@ function test_16() {
|
|||||||
echo PASS
|
echo PASS
|
||||||
|
|
||||||
stop_libeufin
|
stop_libeufin
|
||||||
echo "Second modification: wire nothing"
|
echo "Second modification: wire nothing"
|
||||||
NEW_AMOUNT="TESTKUDOS:0"
|
NEW_AMOUNT="TESTKUDOS:0"
|
||||||
echo "UPDATE TalerRequestedPayments SET amount='${NEW_AMOUNT}' WHERE id='1';" | sqlite3 ${MYDIR}/${DB}-nexus.sqlite3
|
echo "UPDATE TalerRequestedPayments SET amount='${NEW_AMOUNT}' WHERE id='1';" | sqlite3 ${MYDIR}/${DB}-nexus.sqlite3
|
||||||
launch_libeufin
|
launch_libeufin
|
||||||
@ -2028,7 +2028,7 @@ function check_with_database()
|
|||||||
|
|
||||||
# ####### Setup globals ######
|
# ####### Setup globals ######
|
||||||
# Postgres database to use
|
# Postgres database to use
|
||||||
DB=auditor-basedb
|
export DB=auditor-basedb
|
||||||
|
|
||||||
# test required commands exist
|
# test required commands exist
|
||||||
echo "Testing for jq"
|
echo "Testing for jq"
|
||||||
|
Loading…
Reference in New Issue
Block a user