Skip to content
Snippets Groups Projects
Commit 35d4eb25 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

removed unused variable following codacy hint

parent 139a8955
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ fi
# Test - POST and GET an article
echo "Testing articles API..."
temp=$(curl -s -H "Content-Type: application/json" -X POST -d ${ARTICLE_BODY} ${GATEWAY_IP}:65440/services/articles)
curl -s -H "Content-Type: application/json" -X POST -d ${ARTICLE_BODY} ${GATEWAY_IP}:65440/services/articles
response=$(curl -s ${GATEWAY_IP}:65440/services/articles | sed "s/\"createdAt\":[0-9]*,//g")
response_ref=$(echo "${ARTICLE_REF}" | sed "s/\"createdAt\":[0-9]*,//g")
if [ "${response}" != "${response_ref}" ]; then
......@@ -86,7 +86,7 @@ fi
# Test - POST and GET a model
echo "Testing models API..."
temp=$(curl -s -H "Content-Type: application/json" -X POST -d ${MODEL_BODY} ${GATEWAY_IP}:65440/services/models)
curl -s -H "Content-Type: application/json" -X POST -d ${MODEL_BODY} ${GATEWAY_IP}:65440/services/models
response=$(curl -s ${GATEWAY_IP}:65440/services/models | sed "s/\"createdAt\":[0-9]*,//g" | sed "s/\"date\":[0-9]*,//g")
response_ref=$(echo "${MODEL_REF}" | sed "s/\"createdAt\":[0-9]*,//g" | sed "s/\"date\":[0-9]*,//g")
if [ "${response}" != "${response_ref}" ]; then
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment