diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-01-17 04:17:39 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-01-17 04:17:48 +0100 |
commit | 21afdac1f3d75be7def83ac76e59cd2affc38ca0 (patch) | |
tree | d9639b748c561803946d3d81f113fc36522eafe5 /src/lib | |
parent | 7995678e776b719145aeaf9e4409b6dd694c253e (diff) |
test cases / logging
Diffstat (limited to 'src/lib')
4 files changed, 19 insertions, 6 deletions
diff --git a/src/lib/test-taler-exchange-wirewatch-postgres.conf b/src/lib/test-taler-exchange-wirewatch-postgres.conf index 36766ce1f..ae5cd7ef6 100644 --- a/src/lib/test-taler-exchange-wirewatch-postgres.conf +++ b/src/lib/test-taler-exchange-wirewatch-postgres.conf @@ -28,7 +28,7 @@ BASE_URL = "http://localhost:8081/" # as constant in production. # # This is THE test that requires a short reserve expiration time! -IDLE_RESERVE_EXPIRATION_TIME = 5 s +IDLE_RESERVE_EXPIRATION_TIME = 4 s [exchangedb-postgres] #The connection string the plugin has to use for connecting to the database @@ -46,7 +46,12 @@ PORT = 8083 [account-1] # What is the account URL? -URL = "payto://x-taler-bank/localhost:8082/2" +URL = "payto://x-taler-bank/localhost/2" +WIRE_GATEWAY_URL = "http://localhost:8082/2/" + +WIRE_GATEWAY_AUTH_METHOD = basic +USERNAME = Exchange +PASSWORD = x METHOD = x-taler-bank WIRE_RESPONSE = ${TALER_CONFIG_HOME}/account-1.json @@ -55,6 +60,9 @@ ENABLE_DEBIT = YES ENABLE_CREDIT = YES TALER_BANK_AUTH_METHOD = NONE +[bank] +HTTP_PORT = 8082 + [fees-x-taler-bank] # Fees for the forseeable future... diff --git a/src/lib/test_taler_exchange_httpd_home/.config/taler/account-1.json b/src/lib/test_taler_exchange_httpd_home/.config/taler/account-1.json index 3343f6c6c..f39677eff 100644 --- a/src/lib/test_taler_exchange_httpd_home/.config/taler/account-1.json +++ b/src/lib/test_taler_exchange_httpd_home/.config/taler/account-1.json @@ -1,4 +1,4 @@ { - "url": "payto://x-taler-bank/localhost:8082/2", - "master_sig": "2MNAYBN0Q5VEJKFBGH2SRJQSV3QXA81FPXMFF5Y5YQQW1MRTDGJTZX35XHMCZFZ9SN9Q4TQ6MNM8EX7GPPD2MP8Q528A1D8RK7N9J38" + "url": "payto://x-taler-bank/localhost/2", + "master_sig": "HEWC1XDS0QZ53YQR451VRKD4N968NXWGZXS30HJ59MJ0PESACK1ZYPYCAT15P08WD58C7D7F6EVN26D59JKA75XEBDQCM8VYFETK82R" }
\ No newline at end of file diff --git a/src/lib/testing_api_cmd_bank_admin_add_incoming.c b/src/lib/testing_api_cmd_bank_admin_add_incoming.c index a5c8d684d..761e66171 100644 --- a/src/lib/testing_api_cmd_bank_admin_add_incoming.c +++ b/src/lib/testing_api_cmd_bank_admin_add_incoming.c @@ -54,12 +54,12 @@ struct AdminAddIncomingState const char *exchange_credit_url; /** - * Money sender account URL. + * Money sender payto URL. */ const char *payto_debit_account; /** - * Money sender account URL. + * Money receiver payto URL. */ char *payto_credit_account; diff --git a/src/lib/testing_api_cmd_bank_check.c b/src/lib/testing_api_cmd_bank_check.c index 78526cdd2..5c10e2a68 100644 --- a/src/lib/testing_api_cmd_bank_check.c +++ b/src/lib/testing_api_cmd_bank_check.c @@ -158,6 +158,11 @@ check_bank_transfer_run (void *cls, debit_payto, debit_account); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "converted credit_payto (%s) to credit_account (%s)\n", + credit_payto, + credit_account); + if (GNUNET_OK != TALER_FAKEBANK_check_debit (is->fakebank, &amount, |