summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_tip_authorize.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-06-07 23:11:20 +0200
committerChristian Grothoff <christian@grothoff.org>2023-06-07 23:11:20 +0200
commit9725b7d42505d7820fea6e28a638c06b7e81f893 (patch)
treee1a3233e8f2dbe4f61a6c1d1cff4d83f98563594 /src/testing/testing_api_cmd_tip_authorize.c
parent0e2148d63b85025c37d4212162a522e47445acab (diff)
downloadmerchant-9725b7d42505d7820fea6e28a638c06b7e81f893.tar.gz
merchant-9725b7d42505d7820fea6e28a638c06b7e81f893.tar.bz2
merchant-9725b7d42505d7820fea6e28a638c06b7e81f893.zip
major libtalertesting API refactoring, including no longer having taler-specific logic in the test engine core
Diffstat (limited to 'src/testing/testing_api_cmd_tip_authorize.c')
-rw-r--r--src/testing/testing_api_cmd_tip_authorize.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/testing/testing_api_cmd_tip_authorize.c b/src/testing/testing_api_cmd_tip_authorize.c
index 07f98411..b9a03388 100644
--- a/src/testing/testing_api_cmd_tip_authorize.c
+++ b/src/testing/testing_api_cmd_tip_authorize.c
@@ -202,7 +202,7 @@ tip_authorize_traits (void *cls,
struct TALER_TESTING_Trait traits[] = {
TALER_TESTING_make_trait_tip_id (&tas->tip_id),
TALER_TESTING_make_trait_amount (&tas->amount),
- TALER_TESTING_make_trait_reason (&tas->justification),
+ TALER_TESTING_make_trait_reason (tas->justification),
TALER_TESTING_make_trait_timestamp (0,
&tas->tip_expiration),
TALER_TESTING_trait_end (),
@@ -244,13 +244,14 @@ do_retry (void *cls)
tas->retry_task = NULL;
if (NULL == tas->reserve_reference)
{
- tas->tao = TALER_MERCHANT_tip_authorize (tas->is->ctx,
- tas->merchant_url,
- "http://merchant.com/pickup",
- &tas->amount,
- tas->justification,
- &tip_authorize_cb,
- tas);
+ tas->tao = TALER_MERCHANT_tip_authorize (
+ TALER_TESTING_interpreter_get_context (tas->is),
+ tas->merchant_url,
+ "http://merchant.com/pickup",
+ &tas->amount,
+ tas->justification,
+ &tip_authorize_cb,
+ tas);
}
else
{
@@ -263,14 +264,15 @@ do_retry (void *cls)
GNUNET_assert (GNUNET_OK ==
TALER_TESTING_get_trait_reserve_pub (reserve_cmd,
&reserve_pub));
- tas->tao = TALER_MERCHANT_tip_authorize2 (tas->is->ctx,
- tas->merchant_url,
- reserve_pub,
- "http://merchant.com/pickup",
- &tas->amount,
- tas->justification,
- &tip_authorize_cb,
- tas);
+ tas->tao = TALER_MERCHANT_tip_authorize2 (
+ TALER_TESTING_interpreter_get_context (tas->is),
+ tas->merchant_url,
+ reserve_pub,
+ "http://merchant.com/pickup",
+ &tas->amount,
+ tas->justification,
+ &tip_authorize_cb,
+ tas);
}
GNUNET_assert (NULL != tas->tao);
}