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

Change default port for secvisogram (#262)

* Change default port for secvisogram

 * Following change from
   https://github.com/secvisogram/csaf-validator-service/pull/14

* Improve script for setting up validation service

 * Add a test to fail if we cannot connect.
 * Add copyright header.
This commit is contained in:
Bernhard E. Reiter 2022-07-26 15:13:02 +02:00 committed by GitHub
parent 2614c1a4ba
commit 86fb441446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 4 deletions

View file

@ -116,12 +116,17 @@ set +e
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
if [ $(curl -IL http://localhost:8082/api/v1/tests | grep -c HTTP ) != "0" ]; then
break
fi
sleep 3
done
if [ $i == 11 ]; then
echo Could not connect to validation service!
exit 1
fi
# Upload files
./uploadToProvider.sh