test_bank_api_with_fakebank passes again
This commit is contained in:
parent
4b16198b43
commit
734fd8cc7d
@ -950,10 +950,19 @@ handle_debit_history (struct TALER_FAKEBANK_Handle *h,
|
||||
char *credit_payto;
|
||||
char *debit_payto;
|
||||
|
||||
credit_payto = TALER_payto_xtalerbank_make (h->my_baseurl,
|
||||
pos->credit_account);
|
||||
debit_payto = TALER_payto_xtalerbank_make (h->my_baseurl,
|
||||
pos->debit_account);
|
||||
GNUNET_asprintf (&credit_payto,
|
||||
"payto://x-taler-bank/localhost/%s",
|
||||
pos->credit_account);
|
||||
|
||||
GNUNET_asprintf (&debit_payto,
|
||||
"payto://x-taler-bank/localhost/%s",
|
||||
pos->debit_account);
|
||||
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||
"made credit_payto (%s) from credit_account (%s) within fakebank\n",
|
||||
credit_payto,
|
||||
pos->credit_account);
|
||||
|
||||
trans = json_pack
|
||||
("{s:I, s:o, s:o, s:s, s:s, s:s, s:o}",
|
||||
"row_id", (json_int_t) pos->row_id,
|
||||
@ -1070,10 +1079,19 @@ handle_credit_history (struct TALER_FAKEBANK_Handle *h,
|
||||
char *credit_payto;
|
||||
char *debit_payto;
|
||||
|
||||
credit_payto = TALER_payto_xtalerbank_make (h->my_baseurl,
|
||||
pos->credit_account);
|
||||
debit_payto = TALER_payto_xtalerbank_make (h->my_baseurl,
|
||||
pos->debit_account);
|
||||
GNUNET_asprintf (&credit_payto,
|
||||
"payto://x-taler-bank/localhost/%s",
|
||||
pos->credit_account);
|
||||
|
||||
GNUNET_asprintf (&debit_payto,
|
||||
"payto://x-taler-bank/localhost/%s",
|
||||
pos->debit_account);
|
||||
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||
"made credit_payto (%s) from credit_account (%s) within fakebank\n",
|
||||
credit_payto,
|
||||
pos->credit_account);
|
||||
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||
"Returning transaction %s->%s (%s) at %llu\n",
|
||||
pos->debit_account,
|
||||
|
@ -2,13 +2,9 @@
|
||||
currency = KUDOS
|
||||
|
||||
[account-2]
|
||||
URL = payto://x-taler-bank/localhost:8081/2
|
||||
FAKEBANK_PORT = 8081
|
||||
URL = payto://x-taler-bank/localhost/2
|
||||
|
||||
[bank]
|
||||
SERVE = http
|
||||
HTTP_PORT = 8081
|
||||
DATABASE = postgres:///talercheck
|
||||
|
||||
[exchange-wire-test]
|
||||
bank_url = http://localhost:8081/
|
||||
|
@ -371,6 +371,12 @@ check_result (struct TALER_TESTING_Interpreter *is,
|
||||
details->debit_account_url)) )
|
||||
{
|
||||
GNUNET_break (0);
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||
"expected debit_account_url: %s\n",
|
||||
details->debit_account_url);
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||
"actual debit_account_url: %s\n",
|
||||
h[off].details.debit_account_url);
|
||||
print_expected (h,
|
||||
total,
|
||||
off);
|
||||
|
Loading…
Reference in New Issue
Block a user