1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Adjust "setupProviderForItest.sh" script

* To wait for the validator-service to be started.
This commit is contained in:
Fadi Abbud 2022-06-22 11:14:22 +02:00
parent 07ea594e22
commit e1966a5716

View file

@ -107,6 +107,14 @@ popd
# Setup validation service # Setup validation service
./setupValidationService.sh ./setupValidationService.sh
# Wait for the service to be started
for ((i = 1; i <= 10; i++)); do
if [ $(curl -IL http://localhost:3000/api/v1/tests | grep -c HTTP ) != "0" ]; then
break
fi
sleep 3
done
# Upload files # Upload files
./uploadToProvider.sh ./uploadToProvider.sh