1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Improve integration test

* Add hint that some fails are okay, while we try to setup the
   validation service.
This commit is contained in:
Bernhard Reiter 2022-07-21 16:22:02 +02:00
parent 88a2d585be
commit 35c31e9a76
No known key found for this signature in database
GPG key ID: 2B7BA3BF9BC3A554

View file

@ -113,6 +113,8 @@ popd
set +e
# Wait for the service to be started
echo
echo === Try to reach the validator service ten times, up to nine fails are ok
for ((i = 1; i <= 10; i++)); do
if [ $(curl -IL http://localhost:3000/api/v1/tests | grep -c HTTP ) != "0" ]; then
break