Skip to content

Commit

Permalink
Fix basic-deployment kuttl assert
Browse files Browse the repository at this point in the history
  • Loading branch information
ashu-011 committed Sep 23, 2024
1 parent 9c3e4ba commit 37d6964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/kuttl/common/assert-sample-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ commands:
set -x
RETURN_CODE=0
PUBLIC_URL=$(oc get -n $NAMESPACE horizon horizon -o jsonpath='{.status.endpoint}')
STATUSCODE=$(oc exec -it deployment/horizon -- curl --silent --output /dev/stderr --head --write-out "%{http_code}" "$PUBLIC_URL/dashboard/auth/login/?next=/dashboard/" -k)
if test $STATUSCODE -ne 200; then
STATUSCODE=$(oc -n $NAMESPACE exec -it deployment/horizon -- curl --silent --output /dev/stderr --head --write-out "%{http_code}" "$PUBLIC_URL/dashboard/auth/login/?next=/dashboard/" -k)
if [ -z ${STATUSCODE} ] || test $STATUSCODE -ne 200; then
RETURN_CODE=1
echo "${PUBLIC_URL} status code expected is 200 but was ${STATUSCODE}"
fi
Expand Down

0 comments on commit 37d6964

Please sign in to comment.