diff options
author | Phil <phil.buschmann@tum.de> | 2018-08-12 23:11:10 +0200 |
---|---|---|
committer | Phil <phil.buschmann@tum.de> | 2018-08-12 23:11:10 +0200 |
commit | 4df7069dcd17ac39c786ee6f21455c96e6a6dbf4 (patch) | |
tree | 80fe63630f82dd79f73f24cbb954c0703cd873f3 /src/gns/test_plugin_rest_gns.sh | |
parent | 89485145a0f33984a70bffdf0f766667b4a3e75e (diff) | |
download | gnunet-4df7069dcd17ac39c786ee6f21455c96e6a6dbf4.tar.gz gnunet-4df7069dcd17ac39c786ee6f21455c96e6a6dbf4.zip |
Changed Namestore API, changed error handling, changed gns record json
Diffstat (limited to 'src/gns/test_plugin_rest_gns.sh')
-rwxr-xr-x | src/gns/test_plugin_rest_gns.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gns/test_plugin_rest_gns.sh b/src/gns/test_plugin_rest_gns.sh index 7ede44501..ec495a04b 100755 --- a/src/gns/test_plugin_rest_gns.sh +++ b/src/gns/test_plugin_rest_gns.sh | |||
@@ -19,32 +19,32 @@ curl_get () { | |||
19 | 19 | ||
20 | gnunet-identity -D "test_plugin_rest_gns" > /dev/null 2>&1 | 20 | gnunet-identity -D "test_plugin_rest_gns" > /dev/null 2>&1 |
21 | 21 | ||
22 | curl_get "$gns_link?name=www.test_plugin_rest_gns" "error" | 22 | curl_get "$gns_link/www.test_plugin_rest_gns" "error" |
23 | 23 | ||
24 | gnunet-identity -C "test_plugin_rest_gns" | 24 | gnunet-identity -C "test_plugin_rest_gns" |
25 | 25 | ||
26 | curl_get "$gns_link?name=www.test_plugin_rest_gns" "\[\]" | 26 | curl_get "$gns_link/www.test_plugin_rest_gns" "\[\]" |
27 | 27 | ||
28 | gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www -e 1d -V 1.1.1.1 -t A | 28 | gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www -e 1d -V 1.1.1.1 -t A |
29 | 29 | ||
30 | curl_get "$gns_link?name=www.test_plugin_rest_gns" "1.1.1.1" | 30 | curl_get "$gns_link/www.test_plugin_rest_gns" "1.1.1.1" |
31 | 31 | ||
32 | gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www -e 1d -V 1::1 -t AAAA | 32 | gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www -e 1d -V 1::1 -t AAAA |
33 | 33 | ||
34 | curl_get "$gns_link?name=www.test_plugin_rest_gns" "1::1.*1.1.1.1" | 34 | curl_get "$gns_link/www.test_plugin_rest_gns" "1::1.*1.1.1.1" |
35 | 35 | ||
36 | gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www -e 1d -V 1.1.1.2 -t A | 36 | gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www -e 1d -V 1.1.1.2 -t A |
37 | 37 | ||
38 | curl_get "$gns_link?name=www.test_plugin_rest_gns" "1.1.1.2.*1::1.*1.1.1.1" | 38 | curl_get "$gns_link/www.test_plugin_rest_gns" "1.1.1.2.*1::1.*1.1.1.1" |
39 | curl_get "$gns_link?name=www.test_plugin_rest_gns&record_type=A" "1.1.1.2.*1.1.1.1" | 39 | curl_get "$gns_link/www.test_plugin_rest_gns?record_type=A" "1.1.1.2.*1.1.1.1" |
40 | curl_get "$gns_link?name=www.test_plugin_rest_gns&record_type=AAAA" "1::1" | 40 | curl_get "$gns_link/www.test_plugin_rest_gns?record_type=AAAA" "1::1" |
41 | curl_get "$gns_link?name=www.test_plugin_rest_gns&record_type=WRONG_TYPE" "1.1.1.2.*1::1.*1.1.1.1" | 41 | curl_get "$gns_link/www.test_plugin_rest_gns?record_type=WRONG_TYPE" "1.1.1.2.*1::1.*1.1.1.1" |
42 | 42 | ||
43 | gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www1 -e 1d -V 1.1.1.1 -t A | 43 | gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www1 -e 1d -V 1.1.1.1 -t A |
44 | curl_get "$gns_link?name=www1.test_plugin_rest_gns" "1.1.1.1" | 44 | curl_get "$gns_link/www1.test_plugin_rest_gns" "1.1.1.1" |
45 | 45 | ||
46 | gnunet-identity -D "test_plugin_rest_gns" | 46 | gnunet-identity -D "test_plugin_rest_gns" > /dev/null 2>&1 |
47 | 47 | ||
48 | curl_get "$gns_link?name=www1.test_plugin_rest_gns" "error" | 48 | curl_get "$gns_link/www1.test_plugin_rest_gns" "error" |
49 | 49 | ||
50 | exit 0 | 50 | exit 0 |