diff options
Diffstat (limited to 'src/testing/testing_api_cmd_truth_challenge.c')
-rw-r--r-- | src/testing/testing_api_cmd_truth_challenge.c | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/src/testing/testing_api_cmd_truth_challenge.c b/src/testing/testing_api_cmd_truth_challenge.c index f1384c4..7132fcd 100644 --- a/src/testing/testing_api_cmd_truth_challenge.c +++ b/src/testing/testing_api_cmd_truth_challenge.c | |||
@@ -100,14 +100,8 @@ truth_challenge_cb (void *cls, | |||
100 | ksls->tco = NULL; | 100 | ksls->tco = NULL; |
101 | if (tcd->http_status != ksls->expected_http_status) | 101 | if (tcd->http_status != ksls->expected_http_status) |
102 | { | 102 | { |
103 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 103 | TALER_TESTING_unexpected_status (ksls->is, |
104 | "Unexpected response code %u to command %s in %s:%u\n", | 104 | tcd->http_status); |
105 | tcd->http_status, | ||
106 | ksls->is->commands[ksls->is->ip].label, | ||
107 | __FILE__, | ||
108 | __LINE__); | ||
109 | TALER_TESTING_interpreter_fail (ksls->is); | ||
110 | return; | ||
111 | } | 105 | } |
112 | switch (tcd->http_status) | 106 | switch (tcd->http_status) |
113 | { | 107 | { |
@@ -268,13 +262,14 @@ truth_challenge_run (void *cls, | |||
268 | payment_secret = NULL; | 262 | payment_secret = NULL; |
269 | } | 263 | } |
270 | 264 | ||
271 | ksls->tco = ANASTASIS_truth_challenge (is->ctx, | 265 | ksls->tco = ANASTASIS_truth_challenge ( |
272 | ksls->anastasis_url, | 266 | TALER_TESTING_interpreter_get_context (is), |
273 | truth_uuid, | 267 | ksls->anastasis_url, |
274 | truth_key, | 268 | truth_uuid, |
275 | payment_secret, | 269 | truth_key, |
276 | &truth_challenge_cb, | 270 | payment_secret, |
277 | ksls); | 271 | &truth_challenge_cb, |
272 | ksls); | ||
278 | if (NULL == ksls->tco) | 273 | if (NULL == ksls->tco) |
279 | { | 274 | { |
280 | GNUNET_break (0); | 275 | GNUNET_break (0); |
@@ -325,12 +320,9 @@ truth_challenge_traits (void *cls, | |||
325 | struct TALER_TESTING_Trait traits[] = { | 320 | struct TALER_TESTING_Trait traits[] = { |
326 | ANASTASIS_TESTING_make_trait_payment_secret ( | 321 | ANASTASIS_TESTING_make_trait_payment_secret ( |
327 | &ksls->payment_secret_response), | 322 | &ksls->payment_secret_response), |
328 | TALER_TESTING_make_trait_payto_uri ( | 323 | TALER_TESTING_make_trait_payto_uri (ksls->pay_uri), |
329 | (const char **) ksls->pay_uri), | 324 | TALER_TESTING_make_trait_order_id (ksls->order_id), |
330 | TALER_TESTING_make_trait_order_id ( | 325 | ANASTASIS_TESTING_make_trait_code (ksls->code), |
331 | (const char **) &ksls->order_id), | ||
332 | ANASTASIS_TESTING_make_trait_code ( | ||
333 | (const char **) &ksls->code), | ||
334 | TALER_TESTING_trait_end () | 326 | TALER_TESTING_trait_end () |
335 | }; | 327 | }; |
336 | 328 | ||