From 65f9785e7752b6d73e2ad8c6ff2735336ad5baa6 Mon Sep 17 00:00:00 2001 From: Phil Date: Mon, 6 Aug 2018 02:26:04 +0200 Subject: [PATCH] fix gns and identity test script --- src/gns/plugin_rest_gns.c | 3 +-- src/gns/test_plugin_rest_gns.sh | 2 +- src/identity/test_plugin_rest_identity.sh | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c index 4be583f73..495d01504 100644 --- a/src/gns/plugin_rest_gns.c +++ b/src/gns/plugin_rest_gns.c @@ -32,6 +32,7 @@ #define GNUNET_REST_API_NS_GNS "/gns" + #define GNUNET_REST_GNS_PARAM_NAME "name" #define GNUNET_REST_GNS_PARAM_RECORD_TYPE "record_type" @@ -56,7 +57,6 @@ struct Plugin }; - struct RequestHandle { @@ -208,7 +208,6 @@ handle_gns_response (void *cls, struct MHD_Response *resp; json_t *result_array; json_t *record_obj; - char *record_value; char *result; handle->gns_lookup = NULL; diff --git a/src/gns/test_plugin_rest_gns.sh b/src/gns/test_plugin_rest_gns.sh index fca35ee2d..7ede44501 100755 --- a/src/gns/test_plugin_rest_gns.sh +++ b/src/gns/test_plugin_rest_gns.sh @@ -10,7 +10,7 @@ curl_get () { #$1 is link #$2 is grep cache="$(curl -v "$1" 2>&1 | grep "$2")" - echo $cache + #echo $cache if [ "" == "$cache" ] then exit 1 diff --git a/src/identity/test_plugin_rest_identity.sh b/src/identity/test_plugin_rest_identity.sh index 22a7a53c6..d9377500e 100755 --- a/src/identity/test_plugin_rest_identity.sh +++ b/src/identity/test_plugin_rest_identity.sh @@ -3,8 +3,6 @@ #First, start gnunet-arm and the rest-service. #Exit 0 means success, exit 1 means failed test -#No test for subsystem available - identity_link="http://localhost:7776/identity" wrong_link="http://localhost:7776/identityandmore" -- 2.25.1