diff options
author | Christian Blättler <blatc2@bfh.ch> | 2024-04-17 07:33:51 +0200 |
---|---|---|
committer | Christian Blättler <blatc2@bfh.ch> | 2024-04-17 07:33:51 +0200 |
commit | f76afc11f45e16eab755e66b741acdfd2789f9e4 (patch) | |
tree | d696c3780b0f784c9113449ba079f39e07d3765c | |
parent | ef0b0576c9fab95e164dfdbc2ac2a5d3657b4240 (diff) |
test_merchant_api_* passing
-rw-r--r-- | src/testing/test_merchant_api.c | 14 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_post_tokenfamilies.c | 2 |
2 files changed, 5 insertions, 11 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c index 78fd0da6..3f9136bc 100644 --- a/src/testing/test_merchant_api.c +++ b/src/testing/test_merchant_api.c @@ -1682,10 +1682,6 @@ run (void *cls, "EUR:5", 0, MHD_HTTP_OK), - TALER_TESTING_cmd_merchant_get_orders ("get-orders-empty", - merchant_url, - MHD_HTTP_OK, - NULL), TALER_TESTING_cmd_merchant_post_tokenfamilies ("create-tokenfamily", merchant_url, MHD_HTTP_NO_CONTENT, @@ -1706,14 +1702,8 @@ run (void *cls, GNUNET_TIME_UNIT_ZERO_TS, GNUNET_TIME_UNIT_FOREVER_TS, "EUR:5.0"), - /** - * Check the reserve is depleted. - */ - TALER_TESTING_cmd_status ("withdraw-status-1", - "create-reserve-tokens", - "EUR:0", - MHD_HTTP_OK), + TALER_TESTING_cmd_end () }; struct TALER_TESTING_Command commands[] = { @@ -2038,6 +2028,8 @@ run (void *cls, auth), TALER_TESTING_cmd_batch ("repurchase", repurchase), + TALER_TESTING_cmd_batch ("tokens", + tokens), /** * End the suite. */ diff --git a/src/testing/testing_api_cmd_post_tokenfamilies.c b/src/testing/testing_api_cmd_post_tokenfamilies.c index ce76a543..aafff9ef 100644 --- a/src/testing/testing_api_cmd_post_tokenfamilies.c +++ b/src/testing/testing_api_cmd_post_tokenfamilies.c @@ -249,7 +249,9 @@ TALER_TESTING_cmd_merchant_post_tokenfamilies ( json_is_object (description_i18n)); state = GNUNET_new (struct PostTokenFamiliesState); state->merchant_url = merchant_url; + state->http_status = http_status; state->slug = slug; + state->name = name; state->description = description; state->description_i18n = description_i18n; /* ownership taken */ state->valid_after = valid_after; |