more testing for auditor logic

This commit is contained in:
Christian Grothoff 2020-03-24 17:35:18 +01:00
parent 9ad9e7e064
commit dff81f4577
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 21 additions and 4 deletions

View File

@ -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

View File

@ -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 */

View File

@ -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;
}