Skip to content

Commit

Permalink
Adjust how we wait for backend API to become available
Browse files Browse the repository at this point in the history
weldr/bdcs-api#74 changes the format of
Haskell API response for /api/status to match the one from
lorax-composer. This requires updating how we grep for things.
  • Loading branch information
atodorov committed May 16, 2018
1 parent b6a0909 commit a224557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ end-to-end-test: shared
sudo docker build -f Dockerfile.with-coverage -t welder/web-with-coverage:latest .
sudo docker run -d --name web -p 3000:3000 --restart=always --network welder welder/web-with-coverage:latest

until curl http://localhost:4000/api/status | grep '"supported":true'; do \
until curl http://localhost:4000/api/status | grep 'db_supported":true'; do \
sleep 1; \
echo "Waiting for backend API to become ready before testing ..."; \
done;
Expand Down Expand Up @@ -118,7 +118,7 @@ cockpit-test: shared build-rpm
# RPM file is inside docker image already
rm -f welder-web*.rpm welder-web*.tar.gz

until curl http://localhost:4000/api/status | grep '"supported":true'; do \
until curl http://localhost:4000/api/status | grep 'db_supported":true'; do \
sleep 1; \
echo "Waiting for backend API to become ready before testing ..."; \
done;
Expand Down

0 comments on commit a224557

Please sign in to comment.