From 11b643dd83fa3e75d5aa3b4918c55065fa6dc4fa Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 Sep 2019 22:11:24 +0200 Subject: add test for wire transfer subject malformed --- contrib/auditor-report.tex.j2 | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'contrib/auditor-report.tex.j2') diff --git a/contrib/auditor-report.tex.j2 b/contrib/auditor-report.tex.j2 index a5c2bec27..33aab79cf 100644 --- a/contrib/auditor-report.tex.j2 +++ b/contrib/auditor-report.tex.j2 @@ -687,6 +687,7 @@ translate into a financial loss (yet). \hline \hline {\bf Reserve} & {\bf Auditor} & {\bf Exchange} \endfoot + \hline \hline {\bf Total deltas} & {{ data.total_balance_summary_delta_plus}} & @@ -767,21 +768,23 @@ relate to outgoing wire transfers being malformed. This happens if the exchange somehow creates wire transfers with duplicate or malformed wire transfer subjects. +% Table generation tested by testcase #19 in test-auditor.sh + {% if wire.wire_format_inconsistencies|length() == 0 %} {\bf No wire format inconsistencies found.} {% else %} - \begin{longtable}{p{4.5cm}|r} - \multicolumn{3}{c}{ {\bf Row hash} } \\ - {\bf Diagnostic} & {\bf Amount} \\ + \begin{longtable}{p{6.5cm}|r} + \multicolumn{2}{c}{ {\bf Diagnostic} } \\ + {\bf Row (base32)} & {\bf Amount} \\ \hline \hline \endfirsthead - \multicolumn{3}{c}{ {\bf Row hash} } \\ - {\bf Diagnostic} & {\bf Amount} \\ + \multicolumn{2}{c}{ {\bf Diagnostic} } \\ + {\bf Row (base32)} & {\bf Amount} \\ \hline \hline \endhead \hline - \multicolumn{3}{c}{ {\bf Row hash} } \\ - {\bf Diagnostic} & {\bf Amount} \\ + \multicolumn{2}{c}{ {\bf Row (base32)} } \\ + {\bf Row (base32)} & {\bf Amount} \\ \endfoot \hline \hline @@ -791,10 +794,9 @@ with duplicate or malformed wire transfer subjects. \label{table:outgoing:wtid} \endlastfoot {% for item in wire.wire_format_inconsistencies %} - \multicolumn{3}{l}{ \tt \small \truncate{\textwidth}{ {{ item.wire_offset_hash }} } } \\ + \multicolumn{2}{l}{ \small \truncate{0.95\textwidth}{ {{ item.diagnostic }} } } \\ \nopagebreak - {{ item.diagnostic }} & - {{ item.amount }} \\ + { \tt \small \truncate{0.95\textwidth}{ {{ item.wire_offset }} } } & {{ item.amount }} \\ \hline {% endfor %} \end{longtable} {% endif %} -- cgit v1.2.3