summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil <phil.buschmann@tum.de>2018-08-06 02:26:04 +0200
committerPhil <phil.buschmann@tum.de>2018-08-06 02:26:04 +0200
commit65f9785e7752b6d73e2ad8c6ff2735336ad5baa6 (patch)
tree4d18b3ee6ca951d5f594d74e3684bc7b2725dc3a
parent741916af1dee72af1ba24a1c9e4fb40f63b2a0a1 (diff)
fix gns and identity test script
-rw-r--r--src/gns/plugin_rest_gns.c3
-rwxr-xr-xsrc/gns/test_plugin_rest_gns.sh2
-rwxr-xr-xsrc/identity/test_plugin_rest_identity.sh2
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"