diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-17 23:50:41 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-17 23:50:49 +0100 |
commit | 788fd67984a546c58fca4cea62627fa2d763964f (patch) | |
tree | 0ef9aaebe3b1c81634530772443f68c31b5bf718 /src/auditor | |
parent | d95f2a9e437b946bba66c2a0054524fc2e320621 (diff) | |
download | exchange-788fd67984a546c58fca4cea62627fa2d763964f.tar.xz |
doxygen
Diffstat (limited to 'src/auditor')
-rw-r--r-- | src/auditor/taler-wire-auditor.c | 1 | ||||
-rwxr-xr-x | src/auditor/test-auditor.sh | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c index d3d90aedb..7e1af6e9a 100644 --- a/src/auditor/taler-wire-auditor.c +++ b/src/auditor/taler-wire-auditor.c @@ -1609,6 +1609,7 @@ process_credits (void *cls); * transactions). * * @param cls `struct WireAccount` we are processing + * @param http_status HTTP status returned by the bank * @param ec error code in case something went wrong * @param row_off identification of the position at which we are querying * @param details details about the wire transfer diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh index 968d22556..b46f022f1 100755 --- a/src/auditor/test-auditor.sh +++ b/src/auditor/test-auditor.sh @@ -702,12 +702,13 @@ function test_11() { echo "===========11: spurious outgoing transfer ===========" OLD_ID=`echo "SELECT id FROM app_banktransaction WHERE amount='TESTKUDOS:10' ORDER BY id LIMIT 1;" | psql $DB -Aqt` OLD_ACC=`echo "SELECT debit_account_id FROM app_banktransaction WHERE id=$OLD_ID;" | psql $DB -Aqt` +OLD_SUBJECT=`echo "SELECT subject FROM app_banktransaction WHERE id=$OLD_ID;" | psql $DB -Aqt` # Change wire transfer to be FROM the exchange (#2) to elsewhere! # (Note: this change also causes a missing incoming wire transfer, but # this test is only concerned about the outgoing wire transfer # being detected as such, and we simply ignore the other # errors being reported.) -echo "UPDATE app_banktransaction SET debit_account_id=2,credit_account_id=1 WHERE id=$OLD_ID;" | psql -Aqt $DB +echo -e "UPDATE app_banktransaction SET debit_account_id=2,credit_account_id=1,subject='CK9QBFY972KR32FVA1MW958JWACEB6XCMHHKVFMCH1A780Q12SVG http://exchange.example.com/' WHERE id=$OLD_ID;" | psql -Aqt $DB run_audit @@ -740,7 +741,7 @@ fi echo PASS # Undo database modification (exchange always has account #2) -echo "UPDATE app_banktransaction SET debit_account_id=$OLD_ACC,credit_account_id=2 WHERE id=$OLD_ID;" | psql -Aqt $DB +echo "UPDATE app_banktransaction SET debit_account_id=$OLD_ACC,credit_account_id=2,subject=$OLD_SUBJECT WHERE id=$OLD_ID;" | psql -Aqt $DB } |