summaryrefslogtreecommitdiff
path: root/src/auditor
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-24 17:35:18 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-24 17:35:18 +0100
commitdff81f457770c3c6f7d1ad3ffb22362fd005b2d9 (patch)
treed9338842982cdb80676031c6b190b89e9d71b6c6 /src/auditor
parent9ad9e7e064519fb65f14a530df690dd8a6973875 (diff)
downloadexchange-dff81f457770c3c6f7d1ad3ffb22362fd005b2d9.tar.gz
exchange-dff81f457770c3c6f7d1ad3ffb22362fd005b2d9.tar.bz2
exchange-dff81f457770c3c6f7d1ad3ffb22362fd005b2d9.zip
more testing for auditor logic
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/generate-auditor-basedb.conf14
-rw-r--r--src/auditor/taler-helper-auditor-coins.c2
-rw-r--r--src/auditor/taler-helper-auditor-reserves.c9
3 files changed, 21 insertions, 4 deletions
diff --git a/src/auditor/generate-auditor-basedb.conf b/src/auditor/generate-auditor-basedb.conf
index ffaa5471..a9ee5d89 100644
--- a/src/auditor/generate-auditor-basedb.conf
+++ b/src/auditor/generate-auditor-basedb.conf
@@ -95,14 +95,24 @@ HONOR_default = YES
ACTIVE_default = YES
[fees-x-taler-bank]
-wire-fee-2019 = TESTKUDOS:0.01
-closing-fee-2019 = TESTKUDOS:0.01
wire-fee-2020 = TESTKUDOS:0.01
closing-fee-2020 = TESTKUDOS:0.01
wire-fee-2021 = TESTKUDOS:0.01
closing-fee-2021 = TESTKUDOS:0.01
wire-fee-2022 = TESTKUDOS:0.01
closing-fee-2022 = TESTKUDOS:0.01
+wire-fee-2023 = TESTKUDOS:0.01
+closing-fee-2023 = TESTKUDOS:0.01
+wire-fee-2024 = TESTKUDOS:0.01
+closing-fee-2024 = TESTKUDOS:0.01
+wire-fee-2025 = TESTKUDOS:0.01
+closing-fee-2025 = TESTKUDOS:0.01
+wire-fee-2026 = TESTKUDOS:0.01
+closing-fee-2026 = TESTKUDOS:0.01
+wire-fee-2027 = TESTKUDOS:0.01
+closing-fee-2027 = TESTKUDOS:0.01
+wire-fee-2028 = TESTKUDOS:0.01
+closing-fee-2028 = TESTKUDOS:0.01
[merchant-instance-wireformat-default]
TEST_RESPONSE_FILE = ${TALER_CONFIG_HOME}/merchant/wire/tutorial.json
diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c
index ea43b720..375c901e 100644
--- a/src/auditor/taler-helper-auditor-coins.c
+++ b/src/auditor/taler-helper-auditor-coins.c
@@ -2221,7 +2221,7 @@ run (void *cls,
/* Tested in test-auditor.sh #4/#5/#6/#13/#26 */
"total_bad_sig_loss",
TALER_JSON_from_amount (&total_bad_sig_loss),
- /* FIXME: Tested in test-auditor.sh #?? */
+ /* Tested in test-auditor.sh #31 */
"row_inconsistencies",
report_row_inconsistencies,
/* Block #3 */
diff --git a/src/auditor/taler-helper-auditor-reserves.c b/src/auditor/taler-helper-auditor-reserves.c
index 79439e01..8b3925c5 100644
--- a/src/auditor/taler-helper-auditor-reserves.c
+++ b/src/auditor/taler-helper-auditor-reserves.c
@@ -864,9 +864,16 @@ get_closing_fee (const char *receiver_account,
fee,
&master_sig))
{
+ char *diag;
+
+ GNUNET_asprintf (&diag,
+ "closing fee for `%s' unavailable at %s\n",
+ method,
+ GNUNET_STRINGS_absolute_time_to_string (atime));
report_row_inconsistency ("closing-fee",
atime.abs_value_us,
- "closing fee unavailable at given time");
+ diag);
+ GNUNET_free (diag);
GNUNET_free (method);
return GNUNET_SYSERR;
}