diff options
Diffstat (limited to 'src/testing/testing_api_cmd_post_using_templates.c')
-rw-r--r-- | src/testing/testing_api_cmd_post_using_templates.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_post_using_templates.c b/src/testing/testing_api_cmd_post_using_templates.c index 62473b23..88fe9f9b 100644 --- a/src/testing/testing_api_cmd_post_using_templates.c +++ b/src/testing/testing_api_cmd_post_using_templates.c @@ -132,6 +132,11 @@ struct PostUsingTemplatesState const char **template_pos_key; /** + * Option that add amount of the order + */ + const enum TALER_MerchantConfirmationAlgorithm *template_pos_alg; + + /** * Expected HTTP response code. */ unsigned int http_status; @@ -349,10 +354,16 @@ post_using_templates_run (void *cls, TALER_TESTING_get_trait_template_id (ref, &template_id)) TALER_TESTING_FAIL (is); + if (GNUNET_OK != TALER_TESTING_get_trait_template_pos_key (ref, &tis->template_pos_key)) TALER_TESTING_FAIL (is); + + if (GNUNET_OK != + TALER_TESTING_get_trait_template_pos_alg (ref, + &tis->template_pos_alg)) + TALER_TESTING_FAIL (is); tis->iph = TALER_MERCHANT_using_templates_post ( is->ctx, tis->merchant_url, @@ -393,7 +404,8 @@ post_using_templates_traits (void *cls, TALER_TESTING_make_trait_merchant_pub (&pts->merchant_pub), TALER_TESTING_make_trait_claim_nonce (&pts->nonce), TALER_TESTING_make_trait_claim_token (&pts->claim_token), - TALER_TESTING_make_trait_template_pos_key (pts->template_pos_key), // extract from template creation CMD + TALER_TESTING_make_trait_template_pos_key (&pts->template_pos_key), // extract from template creation CMD + TALER_TESTING_make_trait_template_pos_alg (&pts->template_pos_alg), TALER_TESTING_trait_end (), }; |