make test config files more autocomplete.

This commit is contained in:
Marcello Stanisci 2018-05-07 12:44:36 +02:00
parent 40b27a8210
commit 0c2851b88b
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
4 changed files with 56 additions and 1 deletions

View File

@ -9,6 +9,22 @@ TALER_TEST_HOME = test_exchange_api_home/
# Currency supported by the exchange (can only be one)
CURRENCY = EUR
[exchange_keys]
# how long is one signkey valid?
signkey_duration = 4 weeks
# how long are the signatures with the signkey valid?
legal_duration = 2 years
# how long do we generate denomination and signing keys
# ahead of time?
lookahead_sign = 32 weeks 1 day
# how long do we provide to clients denomination and signing keys
# ahead of time?
lookahead_provide = 4 weeks 1 day
[exchange]
# HTTP port the exchange listens to
PORT = 8081

View File

@ -8,6 +8,23 @@ TALER_TEST_HOME = test_exchange_api_home/
# Currency supported by the exchange (can only be one)
CURRENCY = EUR
[exchange_keys]
# how long is one signkey valid?
signkey_duration = 4 weeks
# how long are the signatures with the signkey valid?
legal_duration = 2 years
# how long do we generate denomination and signing keys
# ahead of time?
lookahead_sign = 32 weeks 1 day
# how long do we provide to clients denomination and signing keys
# ahead of time?
lookahead_provide = 4 weeks 1 day
[exchange]
# HTTP port the exchange listens to

View File

@ -98,6 +98,7 @@ check_bank_transfer_run (void *cls,
if (NULL == bcs->deposit_reference)
{
TALER_LOG_INFO ("Deposit reference NOT given\n");
debit_account = &bcs->debit_account;
credit_account = &bcs->credit_account;
exchange_base_url = bcs->exchange_base_url;
@ -120,9 +121,10 @@ check_bank_transfer_run (void *cls,
const struct TALER_TESTING_Command *deposit_cmd;
const struct TALER_Amount *amount_ptr;
TALER_LOG_INFO ("`%s' uses reference (%s)\n",
TALER_LOG_INFO ("`%s' uses reference (%s/%p)\n",
TALER_TESTING_interpreter_get_current_label
(is),
bcs->deposit_reference,
bcs->deposit_reference);
deposit_cmd = TALER_TESTING_interpreter_lookup_command
(is, bcs->deposit_reference);
@ -254,6 +256,8 @@ TALER_TESTING_cmd_check_bank_transfer
bcs->debit_account = debit_account;
bcs->credit_account = credit_account;
bcs->deposit_reference = NULL;
cmd.label = label;
cmd.cls = bcs;
cmd.run = &check_bank_transfer_run;

View File

@ -2,6 +2,24 @@
# Persistant data storage for the testcase
TALER_TEST_HOME = test_taler_exchange_httpd_home/
[exchange_keys]
# how long is one signkey valid?
signkey_duration = 4 weeks
# how long are the signatures with the signkey valid?
legal_duration = 2 years
# how long do we generate denomination and signing keys
# ahead of time?
lookahead_sign = 32 weeks 1 day
# how long do we provide to clients denomination and signing keys
# ahead of time?
lookahead_provide = 4 weeks 1 day
[taler]
# Currency supported by the exchange (can only be one)
CURRENCY = EUR