Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Checking e2e build successed
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyee committed Feb 1, 2019
1 parent 94637b7 commit 29f1140
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@ function run_buildpack_test() {
kubectl apply -f test/build-buildpack.yaml || return 1
# Wait 5s for processing to start
sleep 5
echo "Checking that build was started:"
kubectl get build buildpack-build -oyaml
echo "Checking that build was successed:"
for i in {1..100};do
kubectl get build buildpack-build -o 'jsonpath={.status.conditions[?(@.type=="Succeeded")].status}' 1>/dev/null 2>&1
if [ $? -ne 1 ]; then
break
fi
echo "waiting for build was successed."
sleep 2
done
# TODO(adrcunha): Add proper verification.
}

Expand Down

0 comments on commit 29f1140

Please sign in to comment.