From 499766e553a1f999bddfa8bde856e2e2f5cfc67b Mon Sep 17 00:00:00 2001 From: gabriel-farache Date: Thu, 21 Mar 2024 10:39:52 +0100 Subject: [PATCH] Change m2k e2e status check --- e2e/move2kube.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e2e/move2kube.sh b/e2e/move2kube.sh index 146e28f7..6e324352 100755 --- a/e2e/move2kube.sh +++ b/e2e/move2kube.sh @@ -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