aboutsummaryrefslogtreecommitdiff
path: root/src/identity/test_plugin_rest_identity.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity/test_plugin_rest_identity.sh')
-rwxr-xr-xsrc/identity/test_plugin_rest_identity.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/identity/test_plugin_rest_identity.sh b/src/identity/test_plugin_rest_identity.sh
index 170f3e928..f391f827f 100755
--- a/src/identity/test_plugin_rest_identity.sh
+++ b/src/identity/test_plugin_rest_identity.sh
@@ -84,8 +84,9 @@ fi
84 84
85id="$(gnunet-identity -d | grep "Test - " | sed "s/Test - //g")" 85id="$(gnunet-identity -d | grep "Test - " | sed "s/Test - //g")"
86#Test GET (one identity) for success and error json 86#Test GET (one identity) for success and error json
87#Only lowercase
87cache="$(curl --silent "${link_to_api}?name=Test" | grep "error")" 88cache="$(curl --silent "${link_to_api}?name=Test" | grep "error")"
88if [ "" != "$cache" ] 89if [ "" == "$cache" ]
89then 90then
90 exit 1 91 exit 1
91fi 92fi
@@ -96,7 +97,6 @@ then
96 exit 1 97 exit 1
97fi 98fi
98 99
99
100#Test DELETE success code, error response code and error json 100#Test DELETE success code, error response code and error json
101#echo "Next tests for DELETE will probably fail when POST fails" 101#echo "Next tests for DELETE will probably fail when POST fails"
102cache="$(curl -v -X "DELETE" "${link_to_api}?pubkey=$id" 2>&1 | grep "HTTP/1.1 404")" 102cache="$(curl -v -X "DELETE" "${link_to_api}?pubkey=$id" 2>&1 | grep "HTTP/1.1 404")"