gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated (f03bcb65 -> 4dc8092f)


From: gnunet
Subject: [taler-exchange] branch master updated (f03bcb65 -> 4dc8092f)
Date: Fri, 17 Jan 2020 23:27:44 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a change to branch master
in repository exchange.

    from f03bcb65 doxygen
     new 96543f62 updates to auditor test
     new 4dc8092f auditor fixes

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 contrib/auditor-report.tex.j2 | 16 ++++++++--------
 src/auditor/test-auditor.sh   | 16 ++++++++--------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/contrib/auditor-report.tex.j2 b/contrib/auditor-report.tex.j2
index f8518856..e3db565e 100644
--- a/contrib/auditor-report.tex.j2
+++ b/contrib/auditor-report.tex.j2
@@ -661,18 +661,18 @@ incoming wire transfers does not match with that of the 
bank.
   {\bf All incoming wire transfer amounts and subjects matched up.}
 {% else %}
   \begin{longtable}{p{5.5cm}|r|r}
-  \multicolumn{2}{l}{ {\bf Wire transfer identifier} ({\bf Row}) } \\
+  \multicolumn{2}{l}{ {\bf Reserve Public Key} ({\bf Row}) } \\
   \multicolumn{3}{l}{ {\bf Diagnostic} } \\
   {\bf When} & {\bf Wired} & {\bf Expected}  \\
   \hline \hline
 \endfirsthead
-  \multicolumn{2}{l}{ {\bf Wire transfer identifier} ({\bf Row}) } \\
+  \multicolumn{2}{l}{ {\bf Reserve Public Key} ({\bf Row}) } \\
   \multicolumn{3}{l}{ {\bf Diagnostic} } \\
   {\bf When} & {\bf Wired} & {\bf Expected}  \\
   \hline \hline
 \endhead
   \hline \hline
-  \multicolumn{2}{l}{ {\bf Wire transfer identifier} ({\bf Row}) } \\
+  \multicolumn{2}{l}{ {\bf Reserve Public Key} ({\bf Row}) } \\
   \multicolumn{3}{l}{ {\bf Diagnostic} } \\
   {\bf When} & {\bf Wired} & {\bf Expected}  \\
 \endfoot
@@ -684,7 +684,7 @@ incoming wire transfers does not match with that of the 
bank.
   \label{table:wire_in:transfer_amount_inconsistencies}
 \endlastfoot
 {% for item in wire.reserve_in_amount_inconsistencies %}
-  \multicolumn{3}{l}{ {\tt \small {{ item.wtid }} } ({{ item.row }}) } \\
+  \multicolumn{3}{l}{ {\tt \small {{ item.reserve_pub }} } ({{ item.row }}) } 
\\
 \nopagebreak
   \multicolumn{3}{l}{ {{ item.diagnostic }} } \\
 \nopagebreak
@@ -725,14 +725,14 @@ account.
   {\bf All incoming wire transfer sender accounts matched up.}
 {% else %}
   \begin{longtable}{p{8.5cm}|r}
-  {\bf Wire transfer identifier} & {\bf Amount} \\
+  {\bf Reserve Public Key} & {\bf Amount} \\
   \hline \hline
 \endfirsthead
-  {\bf Wire transfer identifier} & {\bf Amount} \\
+  {\bf Reserve Public Key} & {\bf Amount} \\
   \hline \hline
 \endhead
   \hline \hline
-  {\bf Wire transfer identifier} & {\bf Amount} \\
+  {\bf Reserve Public Key} & {\bf Amount} \\
 \endfoot
   \hline
   {\bf Total amount}  &
@@ -741,7 +741,7 @@ account.
   \label{table:wire_in:sender_account_inconsistencies}
 \endlastfoot
 {% for item in wire.missattribution_in_inconsistencies %}
-  {\tt \small \truncate{8.3cm}{ {{ item.wtid }} } } &
+  {\tt \small \truncate{8.3cm}{ {{ item.reserve_pub }} } } &
   {{ item.amount }} \\ \hline
 {% endfor %}
   \end{longtable}
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index 325b207c..8b1159b4 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -572,7 +572,7 @@ echo "UPDATE reserves_out SET reserve_sig='$OLD_SIG' WHERE 
h_blind_ev='$HBE'" |
 function test_8() {
 
 echo "===========8: wire-transfer-subject disagreement==========="
-OLD_ID=`echo "SELECT id FROM app_banktransaction WHERE 
amount='TESTKUDOS:10.00' ORDER BY id LIMIT 1;" | psql $DB -Aqt`
+OLD_ID=`echo "SELECT id FROM app_banktransaction WHERE amount='TESTKUDOS:10' 
ORDER BY id LIMIT 1;" | psql $DB -Aqt`
 OLD_WTID=`echo "SELECT subject FROM app_banktransaction WHERE id='$OLD_ID';" | 
psql $DB -Aqt`
 NEW_WTID="CK9QBFY972KR32FVA1MW958JWACEB6XCMHHKVFMCH1A780Q12SVG"
 echo "UPDATE app_banktransaction SET subject='$NEW_WTID' WHERE id='$OLD_ID';" 
| psql -Aqt $DB
@@ -585,7 +585,7 @@ if test "x$DIAG" != "xwire subject does not match"
 then
     exit_fail "Diagnostic wrong: $DIAG (0)"
 fi
-WTID=`jq -r .reserve_in_amount_inconsistencies[0].wtid < test-wire-audit.json`
+WTID=`jq -r .reserve_in_amount_inconsistencies[0].reserve_pub < 
test-wire-audit.json`
 if test x$WTID != x"$OLD_WTID" -a x$WTID != x"$NEW_WTID"
 then
     exit_fail "WTID reported wrong: $WTID"
@@ -604,10 +604,10 @@ if test "x$DIAG" != "xwire subject does not match"
 then
     exit_fail "Diagnostic wrong: $DIAG (1)"
 fi
-WTID=`jq -r .reserve_in_amount_inconsistencies[1].wtid < test-wire-audit.json`
+WTID=`jq -r .reserve_in_amount_inconsistencies[1].reserve_pub < 
test-wire-audit.json`
 if test $WTID != "$OLD_WTID" -a $WTID != "$NEW_WTID"
 then
-    exit_fail "WTID reported wrong: $WTID"
+    exit_fail "WTID reported wrong: $WTID (wanted: $NEW_WTID or $OLD_WTID)"
 fi
 EX_A=`jq -r .reserve_in_amount_inconsistencies[1].amount_exchange_expected < 
test-wire-audit.json`
 if test $WTID = "$OLD_WTID" -a $EX_A != "TESTKUDOS:10"
@@ -642,7 +642,7 @@ echo "UPDATE app_banktransaction SET subject='$OLD_WTID' 
WHERE id='$OLD_ID';" |
 function test_9() {
 
 echo "===========9: wire-origin disagreement==========="
-OLD_ID=`echo "SELECT id FROM app_banktransaction WHERE 
amount='TESTKUDOS:10.00' ORDER BY id LIMIT 1;" | psql $DB -Aqt`
+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`
 echo "UPDATE app_banktransaction SET debit_account_id=1;" | psql -Aqt $DB
 
@@ -671,7 +671,7 @@ echo "UPDATE app_banktransaction SET 
debit_account_id=$OLD_ACC;" | psql -Aqt $DB
 function test_10() {
 
 echo "===========10: wire-timestamp disagreement==========="
-OLD_ID=`echo "SELECT id FROM app_banktransaction WHERE 
amount='TESTKUDOS:10.00' ORDER BY id LIMIT 1;" | psql $DB -Aqt`
+OLD_ID=`echo "SELECT id FROM app_banktransaction WHERE amount='TESTKUDOS:10' 
ORDER BY id LIMIT 1;" | psql $DB -Aqt`
 OLD_DATE=`echo "SELECT date FROM app_banktransaction WHERE id='$OLD_ID';" | 
psql $DB -Aqt`
 echo "UPDATE app_banktransaction SET date=NOW() WHERE id=$OLD_ID;" | psql -Aqt 
$DB
 
@@ -700,7 +700,7 @@ echo "UPDATE app_banktransaction SET date='$OLD_DATE' WHERE 
id=$OLD_ID;" | psql
 function test_11() {
 
 echo "===========11: spurious outgoing transfer ==========="
-OLD_ID=`echo "SELECT id FROM app_banktransaction WHERE 
amount='TESTKUDOS:10.00' ORDER BY id LIMIT 1;" | psql $DB -Aqt`
+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`
 # Change wire transfer to be FROM the exchange (#2) to elsewhere!
 # (Note: this change also causes a missing incoming wire transfer, but
@@ -1254,7 +1254,7 @@ then
 
 
     # remove transaction from bank DB
-    echo "DELETE FROM app_banktransaction WHERE debit_account_id=2 AND 
amount='TESTKUDOS:${VAL_DELTA}.00';" | psql -Aqt $DB
+    echo "DELETE FROM app_banktransaction WHERE debit_account_id=2 AND 
amount='TESTKUDOS:${VAL_DELTA}';" | psql -Aqt $DB
 
     audit_only
     post_audit

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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