aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_checkserver.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_checkserver.c
parent0e2148d63b85025c37d4212162a522e47445acab (diff)
major libtalertesting API refactoring, including no longer having taler-specific logic in the test engine core
Diffstat (limited to 'src/testing/testing_api_cmd_checkserver.c')
-rw-r--r--src/testing/testing_api_cmd_checkserver.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/testing/testing_api_cmd_checkserver.c b/src/testing/testing_api_cmd_checkserver.c
index 39df54f6..5b10b1fc 100644
--- a/src/testing/testing_api_cmd_checkserver.c
+++ b/src/testing/testing_api_cmd_checkserver.c
@@ -94,10 +94,10 @@ checkserver_run (void *cls,
{
struct CheckState *cs = cls;
const struct TALER_TESTING_Command *ref;
- const char **url;
- const char **http_method;
- const char **header;
- const void **body;
+ const char *url;
+ const char *http_method;
+ const char *header;
+ const void *body;
const size_t *body_size;
(void) cmd;
@@ -123,7 +123,7 @@ checkserver_run (void *cls,
TALER_TESTING_interpreter_fail (is);
return;
}
- if (NULL == *url)
+ if (NULL == url)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Trait for url is NULL!?\n");
@@ -132,12 +132,12 @@ checkserver_run (void *cls,
return;
}
if (0 != strcmp (cs->expected_url,
- *url))
+ url))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"URL does not match: `%s' != `%s'\n",
cs->expected_url,
- *url);
+ url);
TALER_TESTING_interpreter_fail (is);
return;
}
@@ -147,7 +147,7 @@ checkserver_run (void *cls,
&http_method))
TALER_TESTING_interpreter_fail (is);
if (0 != strcmp (cs->expected_method,
- *http_method))
+ http_method))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"http_method does not match\n");
@@ -159,16 +159,16 @@ checkserver_run (void *cls,
cs->index,
&header))
TALER_TESTING_interpreter_fail (is);
- if ( ( (NULL == cs->expected_header) && (NULL != *header)) ||
+ if ( ( (NULL == cs->expected_header) && (NULL != header)) ||
( (NULL != cs->expected_header) && (NULL == header)) ||
( (NULL != cs->expected_header) &&
(0 != strcmp (cs->expected_header,
- *header)) ) )
+ header)) ) )
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"header does not match: `%s' != `%s'\n",
cs->expected_header,
- *header);
+ header);
TALER_TESTING_interpreter_fail (is);
return;
}
@@ -183,20 +183,20 @@ checkserver_run (void *cls,
&body_size))
TALER_TESTING_interpreter_fail (is);
if ( ( (NULL == cs->expected_body) &&
- (NULL != *body) ) ||
+ (NULL != body) ) ||
( (NULL != cs->expected_body) &&
(NULL == body) ) ||
( (NULL != cs->expected_body) &&
( (*body_size != strlen (cs->expected_body)) ||
(0 != memcmp (cs->expected_body,
- *body,
+ body,
*body_size) ) ) ) )
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"body does not match : `%s' and `%.*s'\n",
cs->expected_body,
(int) *body_size,
- (const char *) *body);
+ (const char *) body);
TALER_TESTING_interpreter_fail (is);
return;
}
@@ -205,7 +205,7 @@ checkserver_run (void *cls,
/**
- * Free the state of a "checkeserver" CMD.
+ * Free the state of a "checkserver" CMD.
*
* @param cls closure.
* @param cmd command being run.