aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-02-25 16:29:17 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-02-25 16:29:17 +0100
commit012ad0aae45a03134f869410bd90e3876c11d386 (patch)
tree6800ce874f35d823a1c31ff3d26d41f957cec9c1 /src
parent0f0e3207f73b55d16fa369b26e1a2b7ed96734f1 (diff)
downloadgnunet-012ad0aae45a03134f869410bd90e3876c11d386.tar.gz
gnunet-012ad0aae45a03134f869410bd90e3876c11d386.zip
-fix
Diffstat (limited to 'src')
-rwxr-xr-xsrc/namestore/test_plugin_rest_namestore.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/namestore/test_plugin_rest_namestore.sh b/src/namestore/test_plugin_rest_namestore.sh
index a251df57d..50b3c8c12 100755
--- a/src/namestore/test_plugin_rest_namestore.sh
+++ b/src/namestore/test_plugin_rest_namestore.sh
@@ -78,7 +78,6 @@ curl_delete () {
78 78
79TEST_ID="test" 79TEST_ID="test"
80gnunet-arm -s -c test_namestore_api.conf 80gnunet-arm -s -c test_namestore_api.conf
81gnunet-arm -I -c test_namestore_api.conf
82#Test GET 81#Test GET
83gnunet-identity -C $TEST_ID -c test_namestore_api.conf 82gnunet-identity -C $TEST_ID -c test_namestore_api.conf
84test="$(gnunet-namestore -D -z $TEST_ID -c test_namestore_api.conf)" 83test="$(gnunet-namestore -D -z $TEST_ID -c test_namestore_api.conf)"
@@ -86,7 +85,9 @@ name=$TEST_ID
86public="$(gnunet-identity -d -c test_namestore_api.conf | grep $TEST_ID | awk 'NR==1{print $3}')" 85public="$(gnunet-identity -d -c test_namestore_api.conf | grep $TEST_ID | awk 'NR==1{print $3}')"
87echo "$name $public" 86echo "$name $public"
88gnunet-namestore -z $name -p -a -n "test_entry" -e "1d" -V "000G006WVZ8HQ5YTVFNX09HK0VJVVQ9ZCBYDSCH3ERT04N5ZRBKEB82EP8" -t "PKEY" -c test_namestore_api.conf 87gnunet-namestore -z $name -p -a -n "test_entry" -e "1d" -V "000G006WVZ8HQ5YTVFNX09HK0VJVVQ9ZCBYDSCH3ERT04N5ZRBKEB82EP8" -t "PKEY" -c test_namestore_api.conf
88sleep 1
89gnunet-arm -i rest -c test_namestore_api.conf 89gnunet-arm -i rest -c test_namestore_api.conf
90sleep 1
90curl_get "${namestore_link}/$name" "HTTP/1.1 200 OK" 91curl_get "${namestore_link}/$name" "HTTP/1.1 200 OK"
91curl_get "${namestore_link}/$public" "error" 92curl_get "${namestore_link}/$public" "error"
92gnunet-namestore -z $name -d -n "test_entry" -c test_namestore_api.conf 93gnunet-namestore -z $name -d -n "test_entry" -c test_namestore_api.conf