diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-25 16:29:17 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-25 16:29:17 +0100 |
commit | 012ad0aae45a03134f869410bd90e3876c11d386 (patch) | |
tree | 6800ce874f35d823a1c31ff3d26d41f957cec9c1 /src | |
parent | 0f0e3207f73b55d16fa369b26e1a2b7ed96734f1 (diff) | |
download | gnunet-012ad0aae45a03134f869410bd90e3876c11d386.tar.gz gnunet-012ad0aae45a03134f869410bd90e3876c11d386.zip |
-fix
Diffstat (limited to 'src')
-rwxr-xr-x | src/namestore/test_plugin_rest_namestore.sh | 3 |
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 | ||
79 | TEST_ID="test" | 79 | TEST_ID="test" |
80 | gnunet-arm -s -c test_namestore_api.conf | 80 | gnunet-arm -s -c test_namestore_api.conf |
81 | gnunet-arm -I -c test_namestore_api.conf | ||
82 | #Test GET | 81 | #Test GET |
83 | gnunet-identity -C $TEST_ID -c test_namestore_api.conf | 82 | gnunet-identity -C $TEST_ID -c test_namestore_api.conf |
84 | test="$(gnunet-namestore -D -z $TEST_ID -c test_namestore_api.conf)" | 83 | test="$(gnunet-namestore -D -z $TEST_ID -c test_namestore_api.conf)" |
@@ -86,7 +85,9 @@ name=$TEST_ID | |||
86 | public="$(gnunet-identity -d -c test_namestore_api.conf | grep $TEST_ID | awk 'NR==1{print $3}')" | 85 | public="$(gnunet-identity -d -c test_namestore_api.conf | grep $TEST_ID | awk 'NR==1{print $3}')" |
87 | echo "$name $public" | 86 | echo "$name $public" |
88 | gnunet-namestore -z $name -p -a -n "test_entry" -e "1d" -V "000G006WVZ8HQ5YTVFNX09HK0VJVVQ9ZCBYDSCH3ERT04N5ZRBKEB82EP8" -t "PKEY" -c test_namestore_api.conf | 87 | gnunet-namestore -z $name -p -a -n "test_entry" -e "1d" -V "000G006WVZ8HQ5YTVFNX09HK0VJVVQ9ZCBYDSCH3ERT04N5ZRBKEB82EP8" -t "PKEY" -c test_namestore_api.conf |
88 | sleep 1 | ||
89 | gnunet-arm -i rest -c test_namestore_api.conf | 89 | gnunet-arm -i rest -c test_namestore_api.conf |
90 | sleep 1 | ||
90 | curl_get "${namestore_link}/$name" "HTTP/1.1 200 OK" | 91 | curl_get "${namestore_link}/$name" "HTTP/1.1 200 OK" |
91 | curl_get "${namestore_link}/$public" "error" | 92 | curl_get "${namestore_link}/$public" "error" |
92 | gnunet-namestore -z $name -d -n "test_entry" -c test_namestore_api.conf | 93 | gnunet-namestore -z $name -d -n "test_entry" -c test_namestore_api.conf |