diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/auditor/taler-helper-auditor-wire.c | 24 | ||||
-rwxr-xr-x | src/auditor/test-auditor.sh | 22 | ||||
-rwxr-xr-x | src/auditor/test-revocation.sh | 12 |
3 files changed, 29 insertions, 29 deletions
diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c index 2596a31eb..d8d62fbe2 100644 --- a/src/auditor/taler-helper-auditor-wire.c +++ b/src/auditor/taler-helper-auditor-wire.c @@ -204,7 +204,7 @@ static json_t *report_reserve_in_inconsistencies; * Array of reports about wrong bank account being recorded for * incoming wire transfers. */ -static json_t *report_missattribution_in_inconsistencies; +static json_t *report_misattribution_in_inconsistencies; /** * Array of reports about row inconsistencies. @@ -267,7 +267,7 @@ static struct TALER_Amount total_bad_amount_in_minus; * for incoming funds and may thus wire funds to the wrong * destination when closing the reserve. */ -static struct TALER_Amount total_missattribution_in; +static struct TALER_Amount total_misattribution_in; /** * Total amount which the exchange did not transfer in time. @@ -499,11 +499,11 @@ do_shutdown (void *cls) TALER_JSON_pack_amount ("total_wire_in_delta_minus", &total_bad_amount_in_minus), /* Tested in test-auditor.sh #9 */ - GNUNET_JSON_pack_array_steal ("missattribution_in_inconsistencies", - report_missattribution_in_inconsistencies), + GNUNET_JSON_pack_array_steal ("misattribution_in_inconsistencies", + report_misattribution_in_inconsistencies), /* Tested in test-auditor.sh #9 */ - TALER_JSON_pack_amount ("total_missattribution_in", - &total_missattribution_in), + TALER_JSON_pack_amount ("total_misattribution_in", + &total_misattribution_in), GNUNET_JSON_pack_array_steal ("row_inconsistencies", report_row_inconsistencies), /* Tested in test-auditor.sh #10/#17 */ @@ -553,7 +553,7 @@ do_shutdown (void *cls) report_reserve_in_inconsistencies = NULL; report_row_inconsistencies = NULL; report_row_minor_inconsistencies = NULL; - report_missattribution_in_inconsistencies = NULL; + report_misattribution_in_inconsistencies = NULL; report_lags = NULL; report_closure_lags = NULL; report_account_progress = NULL; @@ -1938,7 +1938,7 @@ history_credit_cb (void *cls, if (0 != strcasecmp (details->debit_account_uri, rii->details.debit_account_uri)) { - TALER_ARL_report (report_missattribution_in_inconsistencies, + TALER_ARL_report (report_misattribution_in_inconsistencies, GNUNET_JSON_PACK ( TALER_JSON_pack_amount ("amount", &rii->details.amount), @@ -1949,8 +1949,8 @@ history_credit_cb (void *cls, GNUNET_JSON_pack_data_auto ( "reserve_pub", &rii->details.reserve_pub))); - TALER_ARL_amount_add (&total_missattribution_in, - &total_missattribution_in, + TALER_ARL_amount_add (&total_misattribution_in, + &total_misattribution_in, &rii->details.amount); } if (GNUNET_TIME_timestamp_cmp (details->execution_date, @@ -2342,7 +2342,7 @@ run (void *cls, GNUNET_assert (NULL != (report_row_inconsistencies = json_array ())); GNUNET_assert (NULL != - (report_missattribution_in_inconsistencies + (report_misattribution_in_inconsistencies = json_array ())); GNUNET_assert (NULL != (report_lags = json_array ())); @@ -2364,7 +2364,7 @@ run (void *cls, &total_bad_amount_in_minus)); GNUNET_assert (GNUNET_OK == TALER_amount_set_zero (TALER_ARL_currency, - &total_missattribution_in)); + &total_misattribution_in)); GNUNET_assert (GNUNET_OK == TALER_amount_set_zero (TALER_ARL_currency, &total_amount_lag)); diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh index f965558f9..1e04bd194 100755 --- a/src/auditor/test-auditor.sh +++ b/src/auditor/test-auditor.sh @@ -292,7 +292,7 @@ jq -e .emergencies_by_count[0] < test-audit-coins.json > /dev/null && exit_fail echo -n "Test for wire inconsistencies... " jq -e .wire_out_amount_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected wire out inconsistency detected in ordinary run" jq -e .reserve_in_amount_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected reserve in inconsistency detected in ordinary run" -jq -e .missattribution_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected missattribution inconsistency detected in ordinary run" +jq -e .misattribution_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected misattribution inconsistency detected in ordinary run" jq -e .row_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected row inconsistency detected in ordinary run" jq -e .denomination_key_validity_withdraw_inconsistencies[0] < test-audit-reserves.json > /dev/null && exit_fail "Unexpected denomination key withdraw inconsistency detected in ordinary run" jq -e .row_minor_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected minor row inconsistency detected in ordinary run" @@ -342,10 +342,10 @@ if test $WIRED != "TESTKUDOS:0" then exit_fail "Expected total wire delta minus wrong, got $WIRED" fi -WIRED=`jq -r .total_missattribution_in < test-audit-wire.json` +WIRED=`jq -r .total_misattribution_in < test-audit-wire.json` if test $WIRED != "TESTKUDOS:0" then - exit_fail "Expected total missattribution in wrong, got $WIRED" + exit_fail "Expected total misattribution in wrong, got $WIRED" fi echo PASS @@ -413,7 +413,7 @@ jq -e .emergencies_by_count[0] < test-audit-coins.json > /dev/null && exit_fail echo -n "Test for wire inconsistencies... " jq -e .wire_out_amount_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected wire out inconsistency detected in ordinary run" jq -e .reserve_in_amount_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected reserve in inconsistency detected in ordinary run" -jq -e .missattribution_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected missattribution inconsistency detected in ordinary run" +jq -e .misattribution_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected misattribution inconsistency detected in ordinary run" jq -e .row_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected row inconsistency detected in ordinary run" jq -e .row_minor_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected minor row inconsistency detected in ordinary run" jq -e .wire_format_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected wire format inconsistencies detected in ordinary run" @@ -466,10 +466,10 @@ if test $WIRED != "TESTKUDOS:0" then exit_fail "Expected total wire delta minus wrong, got $WIRED" fi -WIRED=`jq -r .total_missattribution_in < test-audit-wire.json` +WIRED=`jq -r .total_misattribution_in < test-audit-wire.json` if test $WIRED != "TESTKUDOS:0" then - exit_fail "Expected total missattribution in wrong, got $WIRED" + exit_fail "Expected total misattribution in wrong, got $WIRED" fi # Database was unmodified, no need to undo echo "OK" @@ -847,12 +847,12 @@ echo "UPDATE TalerIncomingPayments SET incomingPaytoUri='payto://iban/SANDBOXX/D run_audit echo -n "Testing inconsistency detection... " -AMOUNT=`jq -r .missattribution_in_inconsistencies[0].amount < test-audit-wire.json` +AMOUNT=`jq -r .misattribution_in_inconsistencies[0].amount < test-audit-wire.json` if test "x$AMOUNT" != "xTESTKUDOS:10" then exit_fail "Reported amount wrong: $AMOUNT" fi -AMOUNT=`jq -r .total_missattribution_in < test-audit-wire.json` +AMOUNT=`jq -r .total_misattribution_in < test-audit-wire.json` if test "x$AMOUNT" != "xTESTKUDOS:10" then exit_fail "Reported total amount wrong: $AMOUNT" @@ -1945,7 +1945,7 @@ jq -e .emergencies_by_count[0] < test-audit-coins.json > /dev/null && exit_fail echo -n "Test for wire inconsistencies... " jq -e .wire_out_amount_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected wire out inconsistency detected in ordinary run" jq -e .reserve_in_amount_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected reserve in inconsistency detected in ordinary run" -jq -e .missattribution_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected missattribution inconsistency detected in ordinary run" +jq -e .misattribution_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected misattribution inconsistency detected in ordinary run" jq -e .row_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected row inconsistency detected in ordinary run" jq -e .denomination_key_validity_withdraw_inconsistencies[0] < test-audit-reserves.json > /dev/null && exit_fail "Unexpected denomination key withdraw inconsistency detected in ordinary run" jq -e .row_minor_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected minor row inconsistency detected in ordinary run" @@ -1995,10 +1995,10 @@ if test $WIRED != "TESTKUDOS:0" then exit_fail "Expected total wire delta minus wrong, got $WIRED" fi -WIRED=`jq -r .total_missattribution_in < test-audit-wire.json` +WIRED=`jq -r .total_misattribution_in < test-audit-wire.json` if test $WIRED != "TESTKUDOS:0" then - exit_fail "Expected total missattribution in wrong, got $WIRED" + exit_fail "Expected total misattribution in wrong, got $WIRED" fi echo PASS diff --git a/src/auditor/test-revocation.sh b/src/auditor/test-revocation.sh index e8c548e9c..5aea5c788 100755 --- a/src/auditor/test-revocation.sh +++ b/src/auditor/test-revocation.sh @@ -266,7 +266,7 @@ jq -e .emergencies_by_count[0] < test-audit-coins.json > /dev/null && exit_fail echo -n "Test for wire inconsistencies... " jq -e .wire_out_amount_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected wire out inconsistency detected in ordinary run" jq -e .reserve_in_amount_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected reserve in inconsistency detected in ordinary run" -jq -e .missattribution_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected missattribution inconsistency detected in ordinary run" +jq -e .misattribution_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected misattribution inconsistency detected in ordinary run" jq -e .row_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected row inconsistency detected in ordinary run" jq -e .denomination_key_validity_withdraw_inconsistencies[0] < test-audit-reserves.json > /dev/null && exit_fail "Unexpected denomination key withdraw inconsistency detected in ordinary run" jq -e .row_minor_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected minor row inconsistency detected in ordinary run" @@ -316,10 +316,10 @@ if test $WIRED != "TESTKUDOS:0" then exit_fail "Expected total wire delta minus wrong, got $WIRED" fi -WIRED=`jq -r .total_missattribution_in < test-audit-wire.json` +WIRED=`jq -r .total_misattribution_in < test-audit-wire.json` if test $WIRED != "TESTKUDOS:0" then - exit_fail "Expected total missattribution in wrong, got $WIRED" + exit_fail "Expected total misattribution in wrong, got $WIRED" fi echo PASS @@ -387,7 +387,7 @@ jq -e .emergencies_by_count[0] < test-audit-coins.json > /dev/null && exit_fail echo -n "Test for wire inconsistencies... " jq -e .wire_out_amount_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected wire out inconsistency detected in ordinary run" jq -e .reserve_in_amount_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected reserve in inconsistency detected in ordinary run" -jq -e .missattribution_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected missattribution inconsistency detected in ordinary run" +jq -e .misattribution_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected misattribution inconsistency detected in ordinary run" jq -e .row_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected row inconsistency detected in ordinary run" jq -e .row_minor_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected minor row inconsistency detected in ordinary run" jq -e .wire_format_inconsistencies[0] < test-audit-wire.json > /dev/null && exit_fail "Unexpected wire format inconsistencies detected in ordinary run" @@ -418,10 +418,10 @@ if test $WIRED != "TESTKUDOS:0" then exit_fail "Expected total wire delta minus wrong, got $WIRED" fi -WIRED=`jq -r .total_missattribution_in < test-audit-wire.json` +WIRED=`jq -r .total_misattribution_in < test-audit-wire.json` if test $WIRED != "TESTKUDOS:0" then - exit_fail "Expected total missattribution in wrong, got $WIRED" + exit_fail "Expected total misattribution in wrong, got $WIRED" fi # Database was unmodified, no need to undo |