mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Adjust "setupProviderForItest.sh" script
* To wait for the validator-service to be started.
This commit is contained in:
parent
07ea594e22
commit
e1966a5716
1 changed files with 8 additions and 0 deletions
|
|
@ -107,6 +107,14 @@ popd
|
|||
# Setup validation service
|
||||
./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
|
||||
./uploadToProvider.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue