Also delete created test user in test_service CLI command

Signed-off-by: Johann Hoffmann <johann.hoffmann@mailbox.org>
This commit is contained in:
Johann Hoffmann
2022-05-10 12:10:21 +02:00
parent 6b6f29087d
commit 77fe6ed89e

View File

@@ -438,20 +438,19 @@ test_service() {
getuser $USER_ID
check_response $result_file
# echo
# echo "----------------"
# echo "Delete test user"
# echo "----------------"
# deleteuser $USER_ID
echo
echo "----------------"
echo "Delete test user"
echo "----------------"
deleteuser $USER_ID
# check_response $result_file
# USER_STATUS="$(jq -r '.ErrorCode' < $result_file)"
USER_STATUS="$(jq -r '.ErrorCode' < $result_file)"
# if [ "$USER_STATUS" == 404 ]; then
# echo "Test user was successfully deleted"
# else
# echo "Error: failed to delete test user"
# exit 1
# fi
if [ "$USER_STATUS" == 404 ]; then
echo "Error: failed to delete test user, HTTP error code 404"
else
echo "Successfully deleted test user"
fi
}
help() {