exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 551562701e1f48712a0143d0d152b518342f0883
parent b657910c1936c727508843221a5b1552a89da94a
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Wed,  9 Jan 2019 22:44:05 +0100

Comment block.

Diffstat:
Msrc/exchange-lib/test_exchange_api_keys_cherry_picking_extended_2.conf | 2+-
Msrc/exchange-lib/test_exchange_api_keys_cherry_picking_new.c | 24++++++++++++++++++++++++
Msrc/exchange-lib/testing_api_cmd_check_keys.c | 2+-
3 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/src/exchange-lib/test_exchange_api_keys_cherry_picking_extended_2.conf b/src/exchange-lib/test_exchange_api_keys_cherry_picking_extended_2.conf @@ -2,4 +2,4 @@ [exchange] # Lengthen over firstly extended value (100 s) -LOOKAHEAD_SIGN = 150 s +LOOKAHEAD_SIGN = 1500 s diff --git a/src/exchange-lib/test_exchange_api_keys_cherry_picking_new.c b/src/exchange-lib/test_exchange_api_keys_cherry_picking_new.c @@ -106,6 +106,30 @@ run (void *cls, TALER_TESTING_cmd_signal ("reload-keys-serialization", is->exchanged, SIGUSR1), + + TALER_TESTING_cmd_sleep ("sleep-serialization", + 3), + + /** + * XXX. + * + * Current bug: this CMD here uses the "reconnect cert_cb", + * that has its 'consumed' field already set to GNUNET_YES. + * This way, there is no way to pass control to the next + * CMD making therefore the interpreter stuck. + * + * Doable solution: adapt the global "cert_cb" to handle + * "reconnect situations", or even provide some method to + * switch the 'consumed' field back to GNUNET_NO. + */ + TALER_TESTING_cmd_check_keys ("check-freshest-keys", + 4, + 10), + + TALER_TESTING_cmd_wire ("verify-/wire-with-fresh-keys", + "x-taler-bank", + NULL, + MHD_HTTP_OK), TALER_TESTING_cmd_end () }; diff --git a/src/exchange-lib/testing_api_cmd_check_keys.c b/src/exchange-lib/testing_api_cmd_check_keys.c @@ -73,7 +73,7 @@ check_keys_run (void *cls, { is->working = GNUNET_NO; GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Triggering /keys dl, cmd `%s'\n", + "Triggering GET /keys, cmd `%s'\n", cmd->label); /* Means re-download /keys. */