summaryrefslogtreecommitdiff
path: root/src/auditor/test-auditor.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-08-23 21:14:50 +0200
committerChristian Grothoff <christian@grothoff.org>2019-08-23 21:14:50 +0200
commitb5dd2bcdbb25cd6af1897b652c05d782a64dac5f (patch)
tree761762f3b9ea6435f4d87b911a539c725e2d57b2 /src/auditor/test-auditor.sh
parent89bb407b4c4022ea77fd0c10887e0221dcdb3f07 (diff)
downloadexchange-b5dd2bcdbb25cd6af1897b652c05d782a64dac5f.tar.gz
exchange-b5dd2bcdbb25cd6af1897b652c05d782a64dac5f.tar.bz2
exchange-b5dd2bcdbb25cd6af1897b652c05d782a64dac5f.zip
indentation, discuss logic flaw, discuss todo in test-auditor.sh script
Diffstat (limited to 'src/auditor/test-auditor.sh')
-rwxr-xr-xsrc/auditor/test-auditor.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index 8bf54e5df..260124fab 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -32,6 +32,10 @@ taler-bank-manage -c test-auditor.conf serve-http 2>/dev/null >/dev/null &
# Run the auditor!
echo "Running audit(s)"
taler-auditor -c test-auditor.conf -m $MASTER_PUB > test-audit.json
+
+# TODO:
+# - need to configure exchange's bank accounts in test-auditor.conf,
+# otherwise the auditor cannot find them!
taler-wire-auditor -c test-auditor.conf -m $MASTER_PUB > test-wire-audit.json
echo "Shutting down services"
@@ -51,6 +55,7 @@ echo -n "Test for emergencies... "
jq -e .emergencies[0] < test-audit.json > /dev/null && (echo Failed; fail=1) || echo OK
# TODO: Add more checks to ensure test-audit.json matches expectations
+echo "UPDATE reserves_in SET credit_val=5 WHERE reserve_in_serial_id=1" | psql $DB
echo "Cleanup"