From 8e4969eb663dbb2242b0137b1138a8e29610de18 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 30 Apr 2022 12:02:43 +0200 Subject: -implement purses_get CMD --- src/include/taler_testing_lib.h | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'src/include/taler_testing_lib.h') diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index fb3b553ce..930a8e9a6 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -2447,22 +2447,38 @@ TALER_TESTING_cmd_purse_merge ( /** - * Retrieve purse state by purse private key. + * Retrieve purse state. * * @param label command label * @param expected_http_status what HTTP status do we expect to get returned from the exchange * @param purse_ref reference to a command providing us with the purse private key - * @param merge_to how long to wait for a merge - * @param deposit_to how long to wait for a deposit + * @param expected_balance how much should be in the purse + * @param wait_for_merge true to wait for a merge event, otherwise wait for a deposit event + * @param timeout how long to wait * @return the command */ struct TALER_TESTING_Command -TALER_TESTING_cmd_purse_get ( +TALER_TESTING_cmd_purse_poll ( const char *label, unsigned int expected_http_status, const char *purse_ref, - struct GNUNET_TIME_Relative merge_to, - struct GNUNET_TIME_Relative deposit_to); + const char *expected_balance, + bool wait_for_merge, + struct GNUNET_TIME_Relative timeout); + + +/** + * Wait for the poll command to complete. + * + * @param label command label + * @param timeout how long to wait at most + * @param poll_reference which poll command to wait for + * @return the command + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_purse_poll_finish (const char *label, + struct GNUNET_TIME_Relative timeout, + const char *poll_reference); /** -- cgit v1.2.3