ci: sdk tests wait for guardian ready

This commit is contained in:
Evan Gray 2022-10-26 16:41:19 -04:00 committed by Evan Gray
parent 7ee3f6bcbc
commit d4fa63bae1
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
set -e
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' guardian:6060/readyz)" != "200" ]]; do sleep 5; done
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' spy:6060/metrics)" != "200" ]]; do sleep 5; done
CI=true npm --prefix ../sdk/js run test-ci

View File

@ -1,4 +1,5 @@
#!/bin/sh
set -e
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' guardian:6060/readyz)" != "200" ]]; do sleep 5; done
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' spy:6060/metrics)" != "200" ]]; do sleep 5; done
CI=true npm --prefix ../spydk/js run test-ci