/refresh/* & /reserve/status: #5284.

This commit is contained in:
Marcello Stanisci 2018-12-18 16:36:29 +01:00
parent 2fc84dd07f
commit baf95b86e2
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
4 changed files with 1 additions and 18 deletions

View File

@ -204,7 +204,6 @@ run (void *cls,
* Check the reserve is depleted. * Check the reserve is depleted.
*/ */
TALER_TESTING_cmd_status ("status-1", TALER_TESTING_cmd_status ("status-1",
is->exchange,
"create-reserve-1", "create-reserve-1",
"EUR:0", "EUR:0",
MHD_HTTP_OK), MHD_HTTP_OK),
@ -702,7 +701,6 @@ run (void *cls,
/* Check the money is back with the reserve */ /* Check the money is back with the reserve */
TALER_TESTING_cmd_status ("payback-reserve-status-1", TALER_TESTING_cmd_status ("payback-reserve-status-1",
is->exchange,
"payback-create-reserve-1", "payback-create-reserve-1",
"EUR:5.0", "EUR:5.0",
MHD_HTTP_OK), MHD_HTTP_OK),
@ -726,7 +724,6 @@ run (void *cls,
MHD_HTTP_FORBIDDEN), MHD_HTTP_FORBIDDEN),
TALER_TESTING_cmd_status ("payback-reserve-status-2", TALER_TESTING_cmd_status ("payback-reserve-status-2",
is->exchange,
"payback-create-reserve-1", "payback-create-reserve-1",
"EUR:3.99", "EUR:3.99",
MHD_HTTP_OK), MHD_HTTP_OK),
@ -749,7 +746,6 @@ run (void *cls,
CONFIG_FILE_EXPIRE_RESERVE_NOW), CONFIG_FILE_EXPIRE_RESERVE_NOW),
TALER_TESTING_cmd_status ("short-lived-status", TALER_TESTING_cmd_status ("short-lived-status",
is->exchange,
"short-lived-reserve", "short-lived-reserve",
"EUR:0", "EUR:0",
MHD_HTTP_OK), MHD_HTTP_OK),
@ -921,7 +917,6 @@ run (void *cls,
reserve_open_close[(i * RESERVE_OPEN_CLOSE_CHUNK) + 3] reserve_open_close[(i * RESERVE_OPEN_CLOSE_CHUNK) + 3]
= TALER_TESTING_cmd_status ("reserve-open-close-status", = TALER_TESTING_cmd_status ("reserve-open-close-status",
is->exchange,
"reserve-open-close-key", "reserve-open-close-key",
"EUR:0", "EUR:0",
MHD_HTTP_OK); MHD_HTTP_OK);

View File

@ -190,7 +190,6 @@ run (void *cls,
* (EUR:4.00 = 3x EUR:1.03 + 7x EUR:0.13) */ * (EUR:4.00 = 3x EUR:1.03 + 7x EUR:0.13) */
TALER_TESTING_cmd_refresh_melt TALER_TESTING_cmd_refresh_melt
("refresh-melt", ("refresh-melt",
is->exchange,
"EUR:4", "EUR:4",
"refresh-withdraw-coin", "refresh-withdraw-coin",
MHD_HTTP_OK), MHD_HTTP_OK),
@ -203,7 +202,6 @@ run (void *cls,
TALER_TESTING_cmd_refresh_reveal TALER_TESTING_cmd_refresh_reveal
("refresh-(flipped-)reveal", ("refresh-(flipped-)reveal",
is->exchange,
"refresh-melt", "refresh-melt",
MHD_HTTP_CONFLICT), MHD_HTTP_CONFLICT),

View File

@ -54,11 +54,6 @@ struct StatusState
*/ */
unsigned int expected_response_code; unsigned int expected_response_code;
/**
* Connection handle to the exchange.
*/
struct TALER_EXCHANGE_Handle *exchange;
/** /**
* Interpreter state. * Interpreter state.
*/ */
@ -202,7 +197,7 @@ status_run (void *cls,
sizeof (struct TALER_ReservePublicKeyP)); sizeof (struct TALER_ReservePublicKeyP));
} }
ss->rsh = TALER_EXCHANGE_reserve_status (ss->exchange, ss->rsh = TALER_EXCHANGE_reserve_status (is->exchange,
&reserve_pub, &reserve_pub,
&reserve_status_cb, &reserve_status_cb,
ss); ss);
@ -239,7 +234,6 @@ status_cleanup (void *cls,
* Create a "reserve status" command. * Create a "reserve status" command.
* *
* @param label the command label. * @param label the command label.
* @param exchange the exchange to connect to.
* @param reserve_reference reference to the reserve to check. * @param reserve_reference reference to the reserve to check.
* @param expected_balance expected balance for the reserve. * @param expected_balance expected balance for the reserve.
* @param expected_response_code expected HTTP response code. * @param expected_response_code expected HTTP response code.
@ -248,7 +242,6 @@ status_cleanup (void *cls,
*/ */
struct TALER_TESTING_Command struct TALER_TESTING_Command
TALER_TESTING_cmd_status (const char *label, TALER_TESTING_cmd_status (const char *label,
struct TALER_EXCHANGE_Handle *exchange,
const char *reserve_reference, const char *reserve_reference,
const char *expected_balance, const char *expected_balance,
unsigned int expected_response_code) unsigned int expected_response_code)
@ -257,7 +250,6 @@ TALER_TESTING_cmd_status (const char *label,
struct StatusState *ss; struct StatusState *ss;
ss = GNUNET_new (struct StatusState); ss = GNUNET_new (struct StatusState);
ss->exchange = exchange;
ss->reserve_reference = reserve_reference; ss->reserve_reference = reserve_reference;
ss->expected_balance = expected_balance; ss->expected_balance = expected_balance;
ss->expected_response_code = expected_response_code; ss->expected_response_code = expected_response_code;

View File

@ -998,7 +998,6 @@ TALER_TESTING_cmd_wire (const char *label,
* Create a "reserve status" command. * Create a "reserve status" command.
* *
* @param label the command label. * @param label the command label.
* @param exchange the exchange to connect to.
* @param reserve_reference reference to the reserve to check. * @param reserve_reference reference to the reserve to check.
* @param expected_balance expected balance for the reserve. * @param expected_balance expected balance for the reserve.
* @param expected_response_code expected HTTP response code. * @param expected_response_code expected HTTP response code.
@ -1007,7 +1006,6 @@ TALER_TESTING_cmd_wire (const char *label,
*/ */
struct TALER_TESTING_Command struct TALER_TESTING_Command
TALER_TESTING_cmd_status (const char *label, TALER_TESTING_cmd_status (const char *label,
struct TALER_EXCHANGE_Handle *exchange,
const char *reserve_reference, const char *reserve_reference,
const char *expected_balance, const char *expected_balance,
unsigned int expected_response_code); unsigned int expected_response_code);