Skip to content

Commit

Permalink
test: simplify the code checking FDO services
Browse files Browse the repository at this point in the history
Simplify the code checking the FDO servers availability

Signed-off-by: Miguel Martín <[email protected]>
  • Loading branch information
mmartinv committed Oct 9, 2024
1 parent 06c1e62 commit ed0c0ef
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions test/fmf/tests/onboarding/run-onboarding.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,21 +197,11 @@ setup_rendezvous
setup_serviceinfo
systemctl restart fdo-{manufacturing,owner-onboarding,rendezvous,serviceinfo-api}-server.service
# Wait for servers to be up and running
until [ "$(curl -X POST http://${PRIMARY_IP}:8080/ping)" == "pong" ]; do
sleep 1;
done;

until [ "$(curl -X POST http://${PRIMARY_IP}:8081/ping)" == "pong" ]; do
sleep 1;
done;

until [ "$(curl -X POST http://${PRIMARY_IP}:8082/ping)" == "pong" ]; do
sleep 1;
done;

until [ "$(curl -X POST http://${PRIMARY_IP}:8083/ping)" == "pong" ]; do
sleep 1;
done;
for PORT in 808{0..3}; do
until [ "$(curl -s -X POST http://${PRIMARY_IP}:${PORT}/ping)" == "pong" ]; do
sleep 1;
done;
done
perform_no_plain_di
[ "${OV_STORE_DRIVER}" = "Directory" ] || export_import_vouchers
sleep 60
Expand Down

0 comments on commit ed0c0ef

Please sign in to comment.