use current bank CLI and CFG options for auditor tests

This commit is contained in:
Christian Grothoff 2020-10-03 12:26:43 +02:00
parent 9a3bdcf604
commit 4e93638683
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
4 changed files with 5 additions and 3 deletions

View File

@ -62,6 +62,7 @@ HTTP_PORT = 8082
SUGGESTED_EXCHANGE = http://localhost:8081/
SUGGESTED_EXCHANGE_PAYTO = payto://x-taler-bank/localhost/2
ALLOW_REGISTRATIONS = YES
SERVE = http
[exchangedb]
AUDITOR_BASE_DIR = ${TALER_DATA_HOME}/auditors/

View File

@ -32,3 +32,4 @@ MAX_DEBT_BANK = TESTKUDOS:100000.0
HTTP_PORT = 8082
SUGGESTED_EXCHANGE = http://localhost:8081/
SUGGESTED_EXCHANGE_PAYTO = payto://x-taler-bank/localhost/2
SERVE = http

View File

@ -57,7 +57,7 @@ trap cleanup EXIT
function pre_audit () {
# Launch bank
echo -n "Launching bank "
taler-bank-manage-testing $CONF postgres:///$DB serve-http 2>bank.err >bank.log &
taler-bank-manage-testing $CONF postgres:///$DB serve 2>bank.err >bank.log &
for n in `seq 1 80`
do
echo -n "."
@ -370,7 +370,7 @@ echo -n "Testing inconsistency detection... "
ROW=`jq .reserve_in_amount_inconsistencies[0].row < test-audit-wire.json`
if test $ROW != 1
then
exit_fail "Row wrong"
exit_fail "Row $ROW is wrong"
fi
WIRED=`jq -r .reserve_in_amount_inconsistencies[0].amount_wired < test-audit-wire.json`
if test $WIRED != "TESTKUDOS:10"

View File

@ -57,7 +57,7 @@ trap cleanup EXIT
function pre_audit () {
# Launch bank
echo -n "Launching bank "
taler-bank-manage-testing $CONF postgres:///$DB serve-http 2>bank.err >bank.log &
taler-bank-manage-testing $CONF postgres:///$DB serve 2>bank.err >bank.log &
for n in `seq 1 80`
do
echo -n "."