X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fgns%2Ftest_plugin_rest_gns.sh;h=ec495a04b82780553e7d25938c8a10556c6ce3f6;hb=c29a8124f885f28f287e91ce7a0dabcdd6b17d50;hp=fca35ee2d9901771c4b57717a4bd51732c8e02b2;hpb=741916af1dee72af1ba24a1c9e4fb40f63b2a0a1;p=oweals%2Fgnunet.git diff --git a/src/gns/test_plugin_rest_gns.sh b/src/gns/test_plugin_rest_gns.sh index fca35ee2d..ec495a04b 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 @@ -19,32 +19,32 @@ curl_get () { gnunet-identity -D "test_plugin_rest_gns" > /dev/null 2>&1 -curl_get "$gns_link?name=www.test_plugin_rest_gns" "error" +curl_get "$gns_link/www.test_plugin_rest_gns" "error" gnunet-identity -C "test_plugin_rest_gns" -curl_get "$gns_link?name=www.test_plugin_rest_gns" "\[\]" +curl_get "$gns_link/www.test_plugin_rest_gns" "\[\]" gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www -e 1d -V 1.1.1.1 -t A -curl_get "$gns_link?name=www.test_plugin_rest_gns" "1.1.1.1" +curl_get "$gns_link/www.test_plugin_rest_gns" "1.1.1.1" gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www -e 1d -V 1::1 -t AAAA -curl_get "$gns_link?name=www.test_plugin_rest_gns" "1::1.*1.1.1.1" +curl_get "$gns_link/www.test_plugin_rest_gns" "1::1.*1.1.1.1" gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www -e 1d -V 1.1.1.2 -t A -curl_get "$gns_link?name=www.test_plugin_rest_gns" "1.1.1.2.*1::1.*1.1.1.1" -curl_get "$gns_link?name=www.test_plugin_rest_gns&record_type=A" "1.1.1.2.*1.1.1.1" -curl_get "$gns_link?name=www.test_plugin_rest_gns&record_type=AAAA" "1::1" -curl_get "$gns_link?name=www.test_plugin_rest_gns&record_type=WRONG_TYPE" "1.1.1.2.*1::1.*1.1.1.1" +curl_get "$gns_link/www.test_plugin_rest_gns" "1.1.1.2.*1::1.*1.1.1.1" +curl_get "$gns_link/www.test_plugin_rest_gns?record_type=A" "1.1.1.2.*1.1.1.1" +curl_get "$gns_link/www.test_plugin_rest_gns?record_type=AAAA" "1::1" +curl_get "$gns_link/www.test_plugin_rest_gns?record_type=WRONG_TYPE" "1.1.1.2.*1::1.*1.1.1.1" gnunet-namestore -z "test_plugin_rest_gns" -p -a -n www1 -e 1d -V 1.1.1.1 -t A -curl_get "$gns_link?name=www1.test_plugin_rest_gns" "1.1.1.1" +curl_get "$gns_link/www1.test_plugin_rest_gns" "1.1.1.1" -gnunet-identity -D "test_plugin_rest_gns" +gnunet-identity -D "test_plugin_rest_gns" > /dev/null 2>&1 -curl_get "$gns_link?name=www1.test_plugin_rest_gns" "error" +curl_get "$gns_link/www1.test_plugin_rest_gns" "error" exit 0