diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-07-09 07:19:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-07-09 07:19:48 +0000 |
commit | 5a49398fdb8b70227540c721581ba68235bcb916 (patch) | |
tree | 10ce0045d43352c0ee3387087e4215a58ccef2d5 /test/csit/scripts/clamp/start_clamp_containers.sh | |
parent | 60be36dd12980b15db0edbb7d14c7a719596d367 (diff) | |
parent | bc1d800f3ddce555de9c17518ef7e74126fb028f (diff) |
Merge "Fix https issue + create session globally"
Diffstat (limited to 'test/csit/scripts/clamp/start_clamp_containers.sh')
-rwxr-xr-x | test/csit/scripts/clamp/start_clamp_containers.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/csit/scripts/clamp/start_clamp_containers.sh b/test/csit/scripts/clamp/start_clamp_containers.sh index 11ddda1e4..dc0b4fe41 100755 --- a/test/csit/scripts/clamp/start_clamp_containers.sh +++ b/test/csit/scripts/clamp/start_clamp_containers.sh @@ -28,11 +28,11 @@ echo "This is ${WORKSPACE}/test/csit/scripts/clamp/start_clamp_containers.sh" docker-compose up -d # WAIT 5 minutes maximum and test every 5 seconds if Clamp up using HealthCheck API -TIME_OUT=1200 +TIME_OUT=600 INTERVAL=5 TIME=0 while [ "$TIME" -lt "$TIME_OUT" ]; do - response=$(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:8080/restservices/clds/v1/clds/healthcheck); echo $response + response=$(curl --write-out '%{http_code}' --silent --output /dev/null -vk --key config/org.onap.clamp.keyfile https://localhost:8443/restservices/clds/v1/clds/healthcheck); echo $response if [ "$response" == "200" ]; then echo Clamp and its database well started in $TIME seconds @@ -46,12 +46,13 @@ done if [ "$TIME" -ge "$TIME_OUT" ]; then echo TIME OUT: Docker containers not started in $TIME_OUT seconds... Could cause problems for tests... + exit 1; fi # To avoid some problem because templates not yet read TIME=0 while [ "$TIME" -lt "$TIME_OUT" ]; do - response=$(curl --write-out '%{http_code}' --silent --output /dev/null -u admin:password http://localhost:8080/restservices/clds/v1/cldsTempate/template-names); echo $response + response=$(curl --write-out '%{http_code}' --silent --output /dev/null -u admin:password -vk --key config/org.onap.clamp.keyfile https://localhost:8443/restservices/clds/v1/cldsTempate/template-names); echo $response if [ "$response" == "200" ]; then echo Templates well available @@ -65,4 +66,5 @@ done if [ "$TIME" -ge "$TIME_OUT" ]; then echo TIME OUT: Templates not available in $TIME_OUT seconds... Could cause problems for tests... + exit 1; fi |