Skip to content

Commit

Permalink
Change m2k e2e status check
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-farache committed Mar 21, 2024
1 parent 785a099 commit 499766e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e/move2kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ echo "Wait until plan exists"
http_status=$(curl -X GET -s -o /dev/null -w "%{http_code}" "${MOVE2KUBE_URL}/api/v1/workspaces/${WORKSPACE_ID}/projects/${PROJECT_ID}/plan")
done

if [ "${http_status}" -gt 300 ]
if [ "${http_status}" -eq 204 ]
then
echo "Plan not created, error when creating it, checks move2kbe logs, http status=${http_status}...exiting "
exit 1
fi

if [ "${http_status}" -eq 404 ]
then
echo "Plan not created, http status=${http_status}...exiting "
exit 1
Expand Down

0 comments on commit 499766e

Please sign in to comment.