diff options
author | Phil <phil.buschmann@tum.de> | 2018-08-02 03:08:36 +0200 |
---|---|---|
committer | Phil <phil.buschmann@tum.de> | 2018-08-02 03:08:36 +0200 |
commit | 894aaa280790c55e6ffb10aa189a5cadc5bad8f7 (patch) | |
tree | ca01c46be2b493d2b8f35e989dba5287da953dd4 /src/identity/test_plugin_rest_identity.sh | |
parent | 791192b0de6bae796b9eecb7f6e26517559a02a1 (diff) | |
download | gnunet-894aaa280790c55e6ffb10aa189a5cadc5bad8f7.tar.gz gnunet-894aaa280790c55e6ffb10aa189a5cadc5bad8f7.zip |
fix lowercase identities
Diffstat (limited to 'src/identity/test_plugin_rest_identity.sh')
-rwxr-xr-x | src/identity/test_plugin_rest_identity.sh | 4 |
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 | ||
85 | id="$(gnunet-identity -d | grep "Test - " | sed "s/Test - //g")" | 85 | id="$(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 | ||
87 | cache="$(curl --silent "${link_to_api}?name=Test" | grep "error")" | 88 | cache="$(curl --silent "${link_to_api}?name=Test" | grep "error")" |
88 | if [ "" != "$cache" ] | 89 | if [ "" == "$cache" ] |
89 | then | 90 | then |
90 | exit 1 | 91 | exit 1 |
91 | fi | 92 | fi |
@@ -96,7 +97,6 @@ then | |||
96 | exit 1 | 97 | exit 1 |
97 | fi | 98 | fi |
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" |
102 | cache="$(curl -v -X "DELETE" "${link_to_api}?pubkey=$id" 2>&1 | grep "HTTP/1.1 404")" | 102 | cache="$(curl -v -X "DELETE" "${link_to_api}?pubkey=$id" 2>&1 | grep "HTTP/1.1 404")" |