diff options
Diffstat (limited to 'src/testing/testing_api_cmd_post_templates.c')
-rw-r--r-- | src/testing/testing_api_cmd_post_templates.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/testing/testing_api_cmd_post_templates.c b/src/testing/testing_api_cmd_post_templates.c index 32b8d627..85dea3a4 100644 --- a/src/testing/testing_api_cmd_post_templates.c +++ b/src/testing/testing_api_cmd_post_templates.c @@ -60,9 +60,9 @@ struct PostTemplatesState const char *template_description; /** - * base64-encoded product image + * base64-encoded key */ - char *image; + char *pos_key; /** * Contract of the company @@ -97,6 +97,10 @@ post_templates_cb (void *cls, hr->http_status, (int) hr->ec, TALER_TESTING_interpreter_get_current_label (tis->is)); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "tis %u vs hr %u", + tis->http_status, + hr->http_status); TALER_TESTING_interpreter_fail (tis->is); return; } @@ -140,7 +144,7 @@ post_templates_run (void *cls, tis->merchant_url, tis->template_id, tis->template_description, - tis->image, + tis->pos_key, tis->template_contract, &post_templates_cb, tis); @@ -172,8 +176,8 @@ post_templates_traits (void *cls, struct PostTemplatesState *pts = cls; struct TALER_TESTING_Trait traits[] = { TALER_TESTING_make_trait_template_description (&pts->template_description), - TALER_TESTING_make_trait_template_image ( - (const char **) &pts->image), + TALER_TESTING_make_trait_template_pos_key ( + (const char **) &pts->pos_key), TALER_TESTING_make_trait_template_contract (pts->template_contract), TALER_TESTING_make_trait_template_id (&pts->template_id), TALER_TESTING_trait_end (), @@ -205,7 +209,7 @@ post_templates_cleanup (void *cls, "POST /templates operation did not complete\n"); TALER_MERCHANT_templates_post_cancel (tis->iph); } - GNUNET_free (tis->image); + GNUNET_free (tis->pos_key); json_decref (tis->template_contract); GNUNET_free (tis); } @@ -217,7 +221,7 @@ TALER_TESTING_cmd_merchant_post_templates2 ( const char *merchant_url, const char *template_id, const char *template_description, - const char *image, + const char *pos_key, json_t *template_contract, unsigned int http_status) { @@ -231,7 +235,7 @@ TALER_TESTING_cmd_merchant_post_templates2 ( tis->template_id = template_id; tis->http_status = http_status; tis->template_description = template_description; - tis->image = (NULL == image) ? NULL : GNUNET_strdup (image); + tis->pos_key = (NULL == pos_key) ? NULL : GNUNET_strdup (pos_key); tis->template_contract = template_contract; { struct TALER_TESTING_Command cmd = { |